Custom OAuth2 TokenSource to persist refreshed tokens in database

This commit is contained in:
Philipp Wolfer 2023-11-22 17:15:46 +01:00
parent 4a9f26d9db
commit e29d8e2a63
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
8 changed files with 92 additions and 39 deletions

View file

@ -90,5 +90,5 @@ type OAuth2Authenticator interface {
OAuth2Config(redirectUrl *url.URL) oauth2.Config
// Setup the OAuth2 client
OAuth2Setup(redirectUrl *url.URL, token *oauth2.Token) error
OAuth2Setup(token oauth2.TokenSource) error
}