mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 13:17:42 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update account
|
||||||
|
account.AccessToken = tokens.AccessToken
|
||||||
|
account.RefreshToken = tokens.RefreshToken
|
||||||
|
account.ExpiresAt = int64(now + 3540)
|
||||||
|
|
||||||
// Refresh client
|
// Refresh client
|
||||||
rac = nc.reddit.NewAuthenticatedClient(tokens.RefreshToken, tokens.AccessToken)
|
rac = nc.reddit.NewAuthenticatedClient(tokens.RefreshToken, tokens.AccessToken)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue