public override async void ViewAppeared() { base.ViewAppeared(); if (isInitialAppearance) { isInitialAppearance = false; var hasToken = await authService.AcquireTokenSilently(); if (hasToken) { await HandleAppPermissions(); } else { authService.OnAuthChanged += HandleOnAuthChanged; OnDisplayLogin?.Invoke(); } } }