generated from rog-golang-buddies/golang-template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
good progress. but remember we'll need Redis for storing used refresh tokens. otherwise if a token is stolen we can't detect it and close the authentication flow. and to allow the user to have multiple devices connected we need a `clientId` field inside token claims. this will allow us to recognize which device a user is using so we can only close that specific connection and let others untouched.
- Loading branch information
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a702829
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I had no idea http.StatusText existed, wow.
& Also yes, Redis still something I've little clue about that still unfortunately. I am studying the code you made in the first commit to see where it can be integrated.