-
Notifications
You must be signed in to change notification settings - Fork 207
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
Auth flow failed because of inconsistent state. #354
Comments
Unfortunately, the Dropbox iOS Swift SDK does not officially support SwiftUI. I'll pass this along as a request for official support for that, but I can't promise if/when that would be done. (There's a thread here that may be helpful though.) |
I tried the examples in the thread and they did not change the output. I am making a macOS app. |
Thanks for following up. I'm sorry to hear that didn't help. I'll follow up here if/when the team officially adds support for SwiftUI. |
I don't think this is a problem with SwiftUI, as the URL Dropbox redirects to is: |
What format of redirect URI does SwiftyDropbox expect? |
Is there a way to manually parse the URL and get the Access Token? |
I found a workaround for now: I modify the url to set response_type=token and then I manually parse the URL and create a Dropbox Client from the Access Token. |
Thanks for following up and clarifying. I'm glad to hear you got this working. For reference though, unless SwiftUI is somehow complicating this, you shouldn't have to parse the URLs yourself. As long as you implement the authorization flow as shown in the documentation here, using |
When I do Dropbox Auth Flow with SwiftUI, dropbox raises error, Auth flow failed because of inconsistent state.
The text was updated successfully, but these errors were encountered: