in public/utils/authProvider.ts [78:92]
async getProfileTokenIfPresent(): Promise<string> {
let authResponse: AuthenticationResult;
const account = this.account || await this.getAccount();
if (account) {
this.silentProfileRequest.account = account;
try {
authResponse = await this.clientApplication.acquireTokenSilent(this.silentProfileRequest);
} catch (error) {
// do nothing
}
}
return authResponse?.accessToken || null;
}