From d8cea29db2c758c20ef10ce73f18e0d53923a347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nmez=20Kartal?= Date: Thu, 13 Apr 2023 23:36:15 +0300 Subject: [PATCH] fix(address): keep the stored refresh token for Google if not provided (#2093) --- platform/address/src/nodes/oauth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/address/src/nodes/oauth.ts b/platform/address/src/nodes/oauth.ts index a1df6c04cd..b2dab8ccdc 100644 --- a/platform/address/src/nodes/oauth.ts +++ b/platform/address/src/nodes/oauth.ts @@ -107,7 +107,7 @@ export default class OAuthAddress { ...data, timestamp: Date.now(), accessToken: body.access_token, - refreshToken: body.refresh_token, + refreshToken: body.refresh_token ?? data.refreshToken, extraParams: { ...data.extraParams, expires_in: body.expires_in,