I'm using AppWrite's own host to build an O-Auth for an iOS app, and on the client side I'm doing something like this:
"“ let successURL = "myappbundle ://auth-callback"
let redirectURL = try await account.createOAuth2Token(
provider: .notion,
success: successURL,
scopes: []
)
"
Which is how I assume AppWrite will setup the final redirect to my app. However upon runtime, trying to execute that piece of code results in a html response that contains the following message:
"Invalid success
param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io"
If I use "cloud.appwrite.io" as the success redirect URL for example, I'm able to get the function to execute, and I can see on the dashboard that the user got created, but safari will never redirect back to my app. What I'm I missing here? Is there somewhere on the dashboard where I can add the deep link of the success redirect to the "accepted hosts"?
Recommended threads
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...