Determines if an error is related to authentication failure.
The AuthError instance to evaluate.
true if the error indicates invalid credentials, expired CSRF, missing session, or insufficient permissions, otherwise false.
true
false
Authentication errors typically require the application to re‑authenticate (e.g., redirect to login page, clear cached session).
if (isAuthenticationError(err)) { redirectToLoginPage();}@public Copy
if (isAuthenticationError(err)) { redirectToLoginPage();}@public
0.1.1
AuthErrorCode
Determines if an error is related to authentication failure.