- Session indicates a specific connection between user's browser/device and the server.
- Can be stored as a set owns by the user. When we need to revoke some of the sessions, removing the session from the set will do the job.
- Token is a string that can be used to authenticate the user. In services, it can be decrypted to get the user Info.
- Token changes when user updates their info or roles.
- For safety, token should be have a short expiration time, e.g. 1 hour, we refresh it when it's about to expire.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
oj-lab/user-service
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published