Skip to content
This repository was archived by the owner on Oct 12, 2018. It is now read-only.

Conversation

@skrulcik
Copy link
Owner

This is based off of tpb-dev's work found in this PR on the original expiring tokens repository.

I moved it to a branch on this repo so I could make a few reconciliation commits.

Supersedes #2

Tokens shouldn't be rotated on every single request, because that would
mean each request would require a new "login" request to get the new
token. Instead, we want to reset the token every time login credentials
are sent to get the token that should be used for authentication. This
is the desired behavior - when someone logs in, revoke any other tokens
regardless of expiration. This ensures that only one client is logged in
at once.
@skrulcik skrulcik merged commit ec53651 into master Dec 28, 2017
@skrulcik skrulcik deleted the rotating-tokens branch December 28, 2017 02:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants