Type guard for AuthError
Value to check
True if the value is an AuthError
if (isAuthError(error)) { console.log("Auth error:", error.code);} Copy
if (isAuthError(error)) { console.log("Auth error:", error.code);}
Type guard for AuthError