Skip to content
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

Open
deepakprabhakara opened this issue Oct 10, 2023 · 6 comments
Open

Mock login and logout #342

deepakprabhakara opened this issue Oct 10, 2023 · 6 comments

Comments

@deepakprabhakara
Copy link
Member

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.

@jatingodnani
Copy link

@deepakprabhakara so are you asking to make a user authentication form with jwt?

@deepakprabhakara
Copy link
Member Author

@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.

@jatingodnani
Copy link

jatingodnani commented Oct 17, 2023

@deepakprabhakara @devkiran what would you prefer should i store jw-token in cookies or should i use state in local storage.

@deepakprabhakara
Copy link
Member Author

@jatingodnani HttpOnly cookies

@deepakprabhakara
Copy link
Member Author

@jatingodnani next-auth makes it easy to work with sessions, please use that.

@jatingodnani
Copy link

jatingodnani commented Oct 17, 2023

@deepakprabhakara if i use next-auth whole login folder will be changed

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

No branches or pull requests

2 participants