From 4fcfdc44882bedd7f2e783fea3649fa22ddbd2ac Mon Sep 17 00:00:00 2001 From: Kavith Thiranga Lokuhewage Date: Mon, 29 Jul 2024 09:37:14 +0530 Subject: [PATCH] Update lib/src/core/authentication-core.ts Co-authored-by: Brion Mario --- lib/src/core/authentication-core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/core/authentication-core.ts b/lib/src/core/authentication-core.ts index 7b7950c6..926820d8 100644 --- a/lib/src/core/authentication-core.ts +++ b/lib/src/core/authentication-core.ts @@ -200,7 +200,7 @@ export class AuthenticationCore { body.set("grant_type", "authorization_code"); body.set("redirect_uri", configData.signInRedirectURL); - if (tokenRequestConfig && tokenRequestConfig.params) { + if (tokenRequestConfig?.params) { Object.entries(tokenRequestConfig.params).forEach(([ key, value ]: [key: string, value: unknown]) => { body.append(key, value as string); });