async getToken()

in public/utils/authProvider.ts [94:105]


    async getToken(authWindow: BrowserWindow, request: SilentFlowRequest): Promise<string> {
        let authResponse: AuthenticationResult;
        const account = this.account || await this.getAccount();
        if (account) {
            request.account = account;
            authResponse = await this.getTokenSilent(authWindow, request);
        } else {
            authResponse = await this.getTokenInteractive(authWindow, this.authCodeRequest);
        }

        return authResponse.accessToken || null;
    }