mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-22 22:35:27 +00:00
one more little fix
This commit is contained in:
parent
2b0078c8f2
commit
d9f64765f0
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue