async getTokenSilent()

in public/utils/authProvider.ts [107:114]


    async getTokenSilent(authWindow: BrowserWindow, tokenRequest: SilentFlowRequest): Promise<AuthenticationResult> {
        try {
            return await this.clientApplication.acquireTokenSilent(tokenRequest);
        } catch (error) {
            console.log('Silent token acquisition failed, acquiring token using redirect');
            return await this.getTokenInteractive(authWindow, this.authCodeRequest);
        }
    }