one more little fix

This commit is contained in:
Andre Medeiros 2021-07-13 14:47:50 -04:00
parent 2b0078c8f2
commit d9f64765f0

View file

@ -219,6 +219,11 @@ refreshToken:
return
}
// Update account
account.AccessToken = tokens.AccessToken
account.RefreshToken = tokens.RefreshToken
account.ExpiresAt = int64(now + 3540)
// Refresh client
rac = nc.reddit.NewAuthenticatedClient(tokens.RefreshToken, tokens.AccessToken)