From d846015c4b3b6152ad534bd84e95b5c692cb493b Mon Sep 17 00:00:00 2001 From: Kavith Lokuhewage Date: Mon, 29 Jul 2024 10:04:58 +0530 Subject: [PATCH] Use shorthand for optional field access --- 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); });