-
Notifications
You must be signed in to change notification settings - Fork 30
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
Mock login and logout #342
Comments
@deepakprabhakara so are you asking to make a user authentication form with jwt? |
@jatingodnani The form to login is already there but we don't actually create a jwt session. That would be good to mimic some of the features like forcing authentication even if logged in. |
@deepakprabhakara @devkiran what would you prefer should i store jw-token in cookies or should i use state in local storage. |
@jatingodnani HttpOnly cookies |
@jatingodnani next-auth makes it easy to work with sessions, please use that. |
@deepakprabhakara if i use next-auth whole login folder will be changed |
Currently login is simulated but to test things like ForceAuthn we should login the user via a session and then provide a logout functionality. If use is logged in they should be directly taken through skipping the current login screen.
The text was updated successfully, but these errors were encountered: