Skip to content

#01 auth #8

Merged
merged 12 commits into from
Nov 18, 2021
Merged

#01 auth #8

merged 12 commits into from
Nov 18, 2021

Conversation

pan261
Copy link
Contributor

@pan261 pan261 commented Nov 18, 2021

Auth server is pretty much set up.

It will run as a separate node process, other node processes will use the token generated by the server by calling the servers /credentials endpoint, which will either return the credentials if they exist, or prompt the user to authenticate through the /auth endpoint.

After a user authenticates through /auth, the server will set the credentials, as well as set an interval to refresh the token every 55 minutes (tokens expire every 60 minutes, but there is a 5 minute buffer here). The server will also set a timeout of 13 days (refresh tokens expire every 14 days, we are leaving a 1 day buffer), to clear the refresh token interval, and clear the credentials, which will prompt the user to authenticate again once they try to access /credentials.

@pan261 pan261 merged commit b4ad32f into master Nov 18, 2021
@pan261 pan261 deleted the #01-auth branch November 22, 2021 18:50
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant