From 5afd5ca0f1f17f8c6d4c4b3037a48804b4cc567c Mon Sep 17 00:00:00 2001 From: Konstantinos Kopanidis Date: Tue, 21 Mar 2023 16:54:06 +0200 Subject: [PATCH] fix(authentication): accessTokens being set wrongly when cookies are enabled --- modules/authentication/src/handlers/tokenProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/authentication/src/handlers/tokenProvider.ts b/modules/authentication/src/handlers/tokenProvider.ts index 935319688..d90c0dbf5 100644 --- a/modules/authentication/src/handlers/tokenProvider.ts +++ b/modules/authentication/src/handlers/tokenProvider.ts @@ -54,7 +54,7 @@ export class TokenProvider { } else { return { result: { - accessToken: cookies.accessToken ?? undefined, + accessToken: cookies.accessToken ? undefined : accessToken.token, refreshToken: cookies.refreshToken ? undefined : refreshToken?.token, }, setCookies: Object.values(cookies).map(obj => obj),