This is an example of authorization with JWT. An access token life time is set in the file .env for a short period of time (15s). The refresh token is stored in HttpOnly Cookie and after the expiration of the access token the route /refresh is used to get a new refresh token.
-
Notifications
You must be signed in to change notification settings - Fork 0
unoms/jwt-refresh
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example of using JWT and refresh token
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published