You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2021-02-06 04:02:47.060157-0700 better[2680:60843] Fatal error: Invalid authConfig.authorizeContext, must be a UIViewController but is nil: file iOS/OAuth2Authorizer+iOS.swift, line 328
The text was updated successfully, but these errors were encountered:
If authorizeEmbedded is not set, it will open Safari and doesn't recognize the useAuthenticationSession Setting. So to use you must set
oauth2.authConfig.authorizeEmbedded =true
The Fatal Error is there because of the missing context. But the current version (5.3.1) doesn't work with SwiftUI, because the type of the presentation context was changed.
So for a quick fix use version 5.3.0. With this version the ASWebAuthenticationSession opens as expected.
I've got the following code, but it's launching a safari window instead of an ASWebAuthenticationSession.
I'm not sure if this is because I'm using SwiftUI?
This could be user error, but it wasn't clear from the docs.
If I set:
I get:
The text was updated successfully, but these errors were encountered: