Skip to content

Commit

Permalink
fix: this is a class, this is required.
Browse files Browse the repository at this point in the history
  • Loading branch information
kashalls committed Jul 24, 2023
1 parent 071ba60 commit 9ab6b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MicrosoftAuthFlow.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class MicrosoftAuthFlow {
this.msa = new LiveTokenManager(this.options.authTitle, ['service::user.auth.xboxlive.com::MBI_SSL'], cache({ cacheName: this.options.flow, username }))
this.doTitleAuth = true
} else if (this.options.flow === 'msal') {
const pickMsalConfig = typeof options.msalConfig === 'object' ? options.msalConfig : msalConfig
const pickMsalConfig = typeof this.options.msalConfig === 'object' ? this.options.msalConfig : msalConfig
const config = Object.assign({ ...pickMsalConfig }, this.options.authTitle ? { auth: { ...pickMsalConfig.auth, clientId: this.options.authTitle } } : {})
this.msa = new MsaTokenManager(config, ['XboxLive.signin', 'offline_access'], cache({ cacheName: 'msal', username }))
} else {
Expand Down

0 comments on commit 9ab6b6a

Please sign in to comment.