mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #639] SwiftUI support? #419
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#419
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cacaosteve on GitHub (Dec 16, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/639
I'm wondering about SwiftUI support?
@mesopelagique commented on GitHub (Dec 16, 2020):
#626 ?
@MoMitch commented on GitHub (Feb 27, 2021):
Issue is:
SwiftUI has a new method of catching callback urls.
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.
@MoMitch commented on GitHub (Feb 27, 2021):
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.
@dadixon commented on GitHub (Apr 17, 2023):
When I run this, I keep getting an error message The operation couldn’t be completed. (OAuthSwiftError error -3.).
@phimage commented on GitHub (Apr 17, 2023):
did you try to read the code?