Skip to content

Commit

Permalink
Use shorthand for optional field access
Browse files Browse the repository at this point in the history
  • Loading branch information
kaviththiranga committed Jul 29, 2024
1 parent c57c84b commit d846015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/core/authentication-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class AuthenticationCore<T> {
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);
});
Expand Down

0 comments on commit d846015

Please sign in to comment.