export const isAuthError = (obj: any): obj is AuthError =>
  isErrors(obj) && obj.type === ErrorType.AUTH;