/// <summary> /// This method tries to refresh the access token. The token needs to be /// efreshed continuously, so that the user is not prompted to sign in again /// </summary> /// <returns></returns> public async Task AttemptAccessTokenRefresh() { _authenticationResult = await AuthContext.AcquireTokenByRefreshTokenAsync(_authenticationResult.RefreshToken, ClientId); }