Should a refresh token be linked to a single access token, and what is the ideal refresh flow?

I’ve been reading about access tokens and refresh tokens, and am implementing it in my own site. Right now, based on an example codebase on GitHub, a refresh token of random characters is created and stored in the database with some detail… Continue reading Should a refresh token be linked to a single access token, and what is the ideal refresh flow?

Posted in JWT

Using the user’s password hash as their refresh token (with the password hash in their JWT)?

I’m building an authentication system that I want to be secure. I plan on using JWT tokens as the main authentication mechanism. When the token expires, the server will return a “401 unauthorized” response, and I would like the client to b… Continue reading Using the user’s password hash as their refresh token (with the password hash in their JWT)?