You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
Hi,
I used this library for aws authentication but the issue appears when i sign in and navigates to sign up page it clears all the auth state and requires sign in again
i think it should redirect me or at least not clearing auth state
provided that signup page is my authComponent
The text was updated successfully, but these errors were encountered:
Hi kiitos-smasri, can I please ask how you implemented the SignUp page component?
If you map redux state's state.authState.loggedIn in sign up component to check if it is logged in and then decide if you should redirect or not, this might solve your issue.
Also you can check if your AWS auth tokens are removed from local storage after navigated to sign up page, if they still there, state.authState.loggedIn should stay true.
Thanks for your reply
both solutions are not working because when I navigate to sign up which is the "AuthComponent"
tokens are removed from local storage and state.authState.loggedIn becomes false
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I used this library for aws authentication but the issue appears when i sign in and navigates to sign up page it clears all the auth state and requires sign in again
i think it should redirect me or at least not clearing auth state
provided that signup page is my authComponent
The text was updated successfully, but these errors were encountered: