We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db9e5a9 commit 3b70eefCopy full SHA for 3b70eef
1 file changed
core/dbio/api/auth.go
@@ -674,7 +674,8 @@ func (a *AuthenticatorOAuth2) SaveToken(tok *oauth2.Token) error {
674
675
// LoadToken loads the stored token.
676
func (a *AuthenticatorOAuth2) LoadToken() (*oauth2.Token, error) {
677
- tok := &oauth2.Token{}
+ // set default expiry, token renew needs it
678
+ tok := &oauth2.Token{Expiry: time.Now().Add(-1 * time.Hour)}
679
680
// attempt to load from secrets first, then from file
681
err := g.Unmarshal(g.Marshal(a.conn.State.Secrets), tok)
0 commit comments