mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-28 09:56:23 +02:00
preserve refresh token if not reissued
This commit is contained in:
parent
f5d585ac7e
commit
3ea416ac71
1 changed files with 5 additions and 0 deletions
|
|
@ -200,6 +200,11 @@ export async function refreshTokens(
|
|||
tokens.scopes = existingScopes;
|
||||
}
|
||||
|
||||
// Preserve existing refresh token if server didn't return it
|
||||
if (!tokens.refresh_token) {
|
||||
tokens.refresh_token = refreshToken;
|
||||
}
|
||||
|
||||
console.log(`[OAuth] Token refresh successful`);
|
||||
return tokens;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue