Skip to content

Refresh expired OAuth access tokens#262

Open
Chel-Tbl wants to merge 1 commit into
jasonhedman:mainfrom
Chel-Tbl:bounty/oauth-token-refresh
Open

Refresh expired OAuth access tokens#262
Chel-Tbl wants to merge 1 commit into
jasonhedman:mainfrom
Chel-Tbl:bounty/oauth-token-refresh

Conversation

@Chel-Tbl
Copy link
Copy Markdown

Summary

  • add a shared OAuth refresh helper for expiring provider access tokens
  • refresh accounts before returning them from getAccount and getAccountByProvider, which is the path used by connected toolkits
  • support Google, Discord, GitHub, Spotify, Strava, and Twitter refresh-token flows while leaving providers without refresh config unchanged

Verification

  • tsc --noEmit --pretty false
  • targeted prettier --check for changed files
  • SKIP_ENV_VALIDATION=1 next build

Closes #191

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle OAuth access token refresh

1 participant