-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use redux to handle authentication state #7
Comments
I can look into it. |
Basically what needs to be done is when a guy logs in i.e. login API is called set the authentication state to true and after this whenever a guy refreshes a api will be called named /authContinuity which will verify if you are logged in or not if the response of this api is not authenticated set the state to false. Don't think about the exact responses you can assume the status codes to be 200 for logged in and 401 for not authenticated. So are you up for it..? |
Okay, so I have to create a Redux store that will hold a boolean value of the login state?. |
Yeah sure a redux store that will be accessible through the application and store the login state. |
anyone working on this @batflarrow ?? |
Naah all yours f you are up for it.. @raghusodani |
ok then assign me |
Go for it @raghusodani |
there are no login data till now so I am framing a generic reducer to handle username and email. |
Yeah sure username and email will do just fine and a boolean isAuthenticated so as to maintain the state of auth |
sure |
No description provided.
The text was updated successfully, but these errors were encountered: