Skip to content

Commit

Permalink
fix(authentication): accessTokens being set wrongly when cookies are …
Browse files Browse the repository at this point in the history
…enabled
  • Loading branch information
kkopanidis committed Mar 21, 2023
1 parent 8b32a8e commit 5afd5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/authentication/src/handlers/tokenProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5afd5ca

Please sign in to comment.