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

Guide: JWT sessions #5

Open
pilcrowonpaper opened this issue Feb 20, 2024 · 2 comments
Open

Guide: JWT sessions #5

pilcrowonpaper opened this issue Feb 20, 2024 · 2 comments

Comments

@pilcrowonpaper
Copy link
Owner

No description provided.

@jfagoagas
Copy link

jfagoagas commented Oct 5, 2024

@pilcrowonpaper I can contribute on this one if you're interested!

@Blackwidow-sudo
Copy link

Blackwidow-sudo commented Feb 11, 2025

I was just about to open a "Feature Request".

It would be great to have a guide on password authentication with access- and refresh-tokens, using JWT and describing how to securely do it.
Im currently considering switchting from sessions to token based authentication, but its kind of hard to get all the questions answered i have (especially security related questions).

A couple of questions i had while researching:

  • Where should i store access-tokens and where should i store refresh-tokens, securely
  • How to do refresh-token rotation
  • How to invalidate tokens for user logout
  • Should i read out the JWT on the client to determine when to request a new access-token with the refresh-token, or just do a "try access-token, else refresh and try again" method

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

3 participants