Fix token renewal for already logged-in users
This commit is contained in:
parent
d0dc921fd4
commit
f1e08caee0
@ -598,7 +598,7 @@ export default class PeerClient {
|
||||
const oAuthClient = await OAuthApiClient.create()
|
||||
const res = await oAuthClient.renew(req.oauth_credential)
|
||||
if (res.success && userClient) {
|
||||
await userClient.setCredential(res.result)
|
||||
await userClient.setCredential(res.result.credential)
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user