-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent crash when cancelling an authentication session #902
Comments
This is potentially related/similar to the issue reported here: #343 |
Doing some digging, commenting out So, I wonder if there's something that's attempting to access the stored |
Potentially related: http://ww.openradar.appspot.com/FB12132525
|
Hi @bmarkowitz, thanks for raising this. I wonder if the crash experienced by following the reproduction steps is actually related to the Do the stack traces you get from your users' crashes match the stack trace from the reproduction steps? |
Hey @Widcket - it's hard to tell honestly. The stack traces we're seeing aren't capturing that explicitly, but we've implemented some additional logging around the flow itself. We're seeing that a cancel action is being initiated ( The crash is reproducible with the steps given, but we've also seen it happen in normal usage (without clearing cache/cookies). The Safari view controller will sometimes refresh on its own after bringing the app back into the foreground. This obviously is not an ideal solution, but wrapping the |
Awesome, thank you so much! |
Checklist
Description
We've been seeing a sizable number of crashes when auth sessions are cancelled, specifically when the
userCancelled
error fires.Reproduction
While we don't believe the following steps are the same ones taken by users, we do believe this is a reliable way of reproducing the issue that users are non-deterministically running into after opening the app following some time in the background.
We've been able to reproduce the crash with the same steps using our own app, the sample app, and other apps that use Auth0, like ChatGPT.
Clear History and Website Data
Clear History and Data
in the alert that appears. In newer versions of iOS, this step and the next one are combined into a single sheet.Keep Tabs
in the alert that appears.Additional context
Stack trace:
Auth0.swift version
2.10.0
Platform
iOS
Platform version(s)
15.0+
Xcode version
16.2
Package manager
Swift Package Manager
The text was updated successfully, but these errors were encountered: