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); });