Escape hatch.
This commit is contained in:
@@ -54,7 +54,7 @@ public class AccountManager
|
||||
{
|
||||
var state = await authState.GetAuthenticationStateAsync();
|
||||
|
||||
if (state.User?.Identity?.Name == null || state.User?.Identity?.IsAuthenticated == false)
|
||||
if (state?.User?.Identity?.Name == null || state.User?.Identity?.IsAuthenticated == false)
|
||||
{
|
||||
// Set the login platform so that we know to log in with microsoft after being redirected away from the UI.
|
||||
await localStorage.SetAccountPlatform(WhichAccountPlatform.Microsoft);
|
||||
@@ -66,7 +66,7 @@ public class AccountManager
|
||||
/// <summary>
|
||||
/// Try to log in with the account used from the previous browser session.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <returns>True if login succeeded.</returns>
|
||||
public async Task<bool> TryLoginSilentAsync()
|
||||
{
|
||||
var platform = await localStorage.GetAccountPlatform();
|
||||
|
||||
Reference in New Issue
Block a user