Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically refresh access tokens #364

Open
chrisroos opened this issue Jul 1, 2024 · 0 comments
Open

Automatically refresh access tokens #364

chrisroos opened this issue Jul 1, 2024 · 0 comments

Comments

@chrisroos
Copy link
Contributor

chrisroos commented Jul 1, 2024

While manually testing the school verification functionality in staging we discovered that we'd occassionally see it fail with 401 errors being reported in Sentry. This happens when the user's access token has expired. Ideally we'd automatically refresh the access token to avoid this problem.

We currently use User.from_auth to instantiate and store a user in the session in AuthController#callback. At present we only store the access token for this user so I think we'll also need to store the refresh token and work out how/when to use that to refresh the access token.

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

No branches or pull requests

3 participants