Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Fix auth flow #9

Open
roman-koshchei opened this issue Mar 18, 2023 · 0 comments
Open

Fix auth flow #9

roman-koshchei opened this issue Mar 18, 2023 · 0 comments

Comments

@roman-koshchei
Copy link
Owner

roman-koshchei commented Mar 18, 2023

Remove default auth behavior.
Make a wrapper for the route handler (as U.CatchUnexpected) to check auth.
If there isn't an access token, check the refresh token. If the refresh token is valid, add a new access token to the handler's response.
If the access token is valid, check the expiration. If the token never expires that means it's a dev token and must be checked from the tokens table. If not it's a website token.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant