mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
[SG-690] Login Request does not disappear after 15 minutes (#2106)
* [SG-690] Add timeout of 15 for android notifications. Add condition to not prompt login requests if 15mins have passed. Add constant for timeout time. * [SG-690] Added dialog on click confirm/deny if the request is expired. * [SG-690] PR fixes * [SG-690] PR fixes
This commit is contained in:
@@ -189,7 +189,10 @@ namespace Bit.App
|
||||
});
|
||||
await _stateService.SetPasswordlessLoginNotificationAsync(null);
|
||||
_pushNotificationService.DismissLocalNotification(Constants.PasswordlessNotificationId);
|
||||
await Device.InvokeOnMainThreadAsync(async () => await Application.Current.MainPage.Navigation.PushModalAsync(new NavigationPage(page)));
|
||||
if (loginRequestData.CreationDate.AddMinutes(Constants.PasswordlessNotificationTimeoutInMinutes) > DateTime.Now)
|
||||
{
|
||||
await Device.InvokeOnMainThreadAsync(() => Application.Current.MainPage.Navigation.PushModalAsync(new NavigationPage(page)));
|
||||
}
|
||||
}
|
||||
|
||||
public AppOptions Options { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user