Fix token renewal for already logged-in users

This commit is contained in:
Andrew Ferrazzutti 2022-05-02 02:50:49 -04:00
parent d0dc921fd4
commit f1e08caee0
1 changed files with 1 additions and 1 deletions

View File

@ -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
}