How to manage refresh tokens when logging in from multiple devices

Viewed 16

I use nestjs to manage refreshTokens.

I am storing userId in key and token in value.

The refreshToken is designed to change when a user logs in.

However, if user log in from another device, the user of the first browser will no longer be able to renew the accessToken.

If I use the same refreshToken, there is no way to notify other browsers when an update has occurred.

I allow logins on multiple devices. How to manage refresh tokens?

0 Answers
Related