Skip to content

Bugfix: Redirect authentication errors not captured#716

Open
ShwetaKumari-programming wants to merge 2 commits intoMrSwitch:mainfrom
ShwetaKumari-programming:fix-issue#541
Open

Bugfix: Redirect authentication errors not captured#716
ShwetaKumari-programming wants to merge 2 commits intoMrSwitch:mainfrom
ShwetaKumari-programming:fix-issue#541

Conversation

@ShwetaKumari-programming

During redirect-based authentication, only successful login responses were being captured and stored, while authentication error responses were ignored. As a result, error details returned during redirect login (such as access_denied or password reset errors) were not persisted in localStorage, making them unavailable for proper error handling and user feedback.

This PR fixes the issue by ensuring that authentication errors returned on page redirect are correctly captured and stored, consistent with how successful authentication responses are handled.

What’s Changed

Fixed redirect authentication flow to capture error responses

Persisted authentication error details (error code and message) in localStorage

Ensured error responses are available for downstream handling and UI feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant