OIDExternalUserAgentIOS not run in main tread
Describe the bug
presentationAnchorForWebAuthenticationSession, -[UIView window] must be used from main thread only
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Tap on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment
- Device: MacBook Pro 2019
- OS: macOS 15
- Browser: embedded iOS app popup browser
Additional context
Hey! Feel free to submit a bug this bug to https://github.com/openid/AppAuth-iOS/issues as it seems like it'd be relevant to AppAuth. In any case, I took a look and did not come across this warning. Is this happening when you open the DaysUntilBirthday sample app perhaps or is this your own app?
Found same issue. @jaroshevskii make sure you call GIDSignIn.sharedInstance.signIn(... from main thread. Interesting thing that nested await calls don't guarantee to be on Main as first one.