@@ -31,19 +31,19 @@ export class ImplicitMSALAuthenticationProvider implements AuthenticationProvide
3131 * @private
3232 * A member holding an instance of MSAL UserAgentApplication
3333 */
34- private msalInstance : UserAgentApplication ;
34+ private msalApplication : UserAgentApplication ;
3535
3636 /**
3737 * @public
3838 * @constructor
3939 * Creates an instance of ImplicitMSALAuthenticationProvider
40- * @param {UserAgentApplication } msalInstance - An instance of MSAL UserAgentApplication
40+ * @param {UserAgentApplication } msalApplication - An instance of MSAL UserAgentApplication
4141 * @param {MSALAuthenticationProviderOptions } options - An instance of MSALAuthenticationProviderOptions
4242 * @returns An instance of ImplicitMSALAuthenticationProvider
4343 */
44- public constructor ( msalInstance : UserAgentApplication , options : MSALAuthenticationProviderOptions ) {
44+ public constructor ( msalApplication : UserAgentApplication , options : MSALAuthenticationProviderOptions ) {
4545 this . options = options ;
46- this . msalInstance = msalInstance ;
46+ this . msalApplication = msalApplication ;
4747 }
4848
4949 /**
@@ -68,17 +68,17 @@ export class ImplicitMSALAuthenticationProvider implements AuthenticationProvide
6868 error . message = "Scopes cannot be empty, Please provide a scopes" ;
6969 throw error ;
7070 }
71- if ( this . msalInstance . getAccount ( ) ) {
71+ if ( this . msalApplication . getAccount ( ) ) {
7272 const tokenRequest : AuthenticationParameters = {
7373 scopes,
7474 } ;
7575 try {
76- const authResponse : AuthResponse = await this . msalInstance . acquireTokenSilent ( tokenRequest ) ;
76+ const authResponse : AuthResponse = await this . msalApplication . acquireTokenSilent ( tokenRequest ) ;
7777 return authResponse . accessToken ;
7878 } catch ( error ) {
7979 if ( error instanceof InteractionRequiredAuthError ) {
8080 try {
81- const authResponse : AuthResponse = await this . msalInstance . acquireTokenPopup ( tokenRequest ) ;
81+ const authResponse : AuthResponse = await this . msalApplication . acquireTokenPopup ( tokenRequest ) ;
8282 return authResponse . accessToken ;
8383 } catch ( error ) {
8484 throw error ;
@@ -90,8 +90,8 @@ export class ImplicitMSALAuthenticationProvider implements AuthenticationProvide
9090 const tokenRequest : AuthenticationParameters = {
9191 scopes,
9292 } ;
93- await this . msalInstance . loginPopup ( tokenRequest ) ;
94- const authResponse : AuthResponse = await this . msalInstance . acquireTokenSilent ( tokenRequest ) ;
93+ await this . msalApplication . loginPopup ( tokenRequest ) ;
94+ const authResponse : AuthResponse = await this . msalApplication . acquireTokenSilent ( tokenRequest ) ;
9595 return authResponse . accessToken ;
9696 } catch ( error ) {
9797 throw error ;
0 commit comments