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

Implement Sessions #19

Open
sifatulrabbi opened this issue Dec 24, 2021 · 0 comments
Open

Implement Sessions #19

sifatulrabbi opened this issue Dec 24, 2021 · 0 comments
Assignees
Labels
api API development enhancement New feature or request

Comments

@sifatulrabbi
Copy link
Owner

When the user logs in, rather than sending the Jwt bearer token to the user, save the token to the session storage of the user's browser. And then, on every user request for protected routes, the Jwt bearer token will be attached to the request object for authentication. The Jwt bearer token will expire after one day, and then it will be removed automatically. If the user tries to log out before the expiration, the bearer token will be removed and destroyed in the process.

@sifatulrabbi sifatulrabbi added enhancement New feature or request api API development labels Dec 24, 2021
@sifatulrabbi sifatulrabbi self-assigned this Dec 24, 2021
@sifatulrabbi sifatulrabbi added this to To do in Build the backend via automation Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API development enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant