-
Notifications
You must be signed in to change notification settings - Fork 833
Open
Labels
Description
Describe the bug
App crashes if clearing Safari history while in an authentication session.
To Reproduce
Steps to reproduce the behavior:
- Start a
OIDExternalUserAgentSession
, using for example:OIDAuthState.authState(...)
- Switch to iOS Safari Settings, clear history and website data — closing all tabs
- Return to app
- Hit cancel on the alert that displays
- App will crash
Expected behavior
Alert dismisses
Environment
- Device: iOS simulator, iOS devices
- OS: iOS13+
- Browser: Safari
Additional context
It looks like this is a known issue in ASWebAuthenticationSession
. See radr: https://openradar.appspot.com/FB12132525
A potential mitigation is to "retain the authentication session until after the dismiss animation is complete".