-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
SwiftUI support? #639
Comments
#626 ? |
Issue is: Solution: We should have a way to pass in a url response ourselves to the auth object and let it handle it like a normal callback. |
For the meantime, you can do something like this:
This will re-route all URL's redirecting to the app to the callback function for OAuthSwift. Note that you probably want to parse it and make sure it's an auth token, and not a deep link etc. first. This was just a quick test. We call 'logDetails' on sharedTwitterClient which prints out some data, but more importantly instantiates a shared global var and initializes it by connecting to OAuthSwift2 and our twitter details. |
When I run this, I keep getting an error message The operation couldn’t be completed. (OAuthSwiftError error -3.). |
did you try to read the code?
|
I'm wondering about SwiftUI support?
The text was updated successfully, but these errors were encountered: