We have followed the steps on this blog: https://dev.to/appwrite/apple-sign-in-with-appwrite-2576 to set up the apple sign in.
After the user has signed in with their appleid, it shows a missing redirect url.
more context:
- no sessoin was created.
- the flutter code to sign in:
await _apiService.loginWithOAuth(provider);
You seem to be missing the redirect URIs in your loginWithOAuth(). The second parameter should be a redirect URI for on success, and the third for on failure.
@ideclon I dont think success parameter is required (it's optional right)?
Technically, yes. But if you donβt set it, the application has no way to know what to do after completing the login.
success and failure URLs are optional in mobile. You may see that missing redirect, but you should still be automatically redirected back to your mobile app. You may need to tap some confirmation or choose which app to redirect to.
But I dont see any session being created. account.get() will get nothing
can you tell what URL you're ending up on?
Ok so that's.the problem. Failed to obtain access token because of invalid client. Something is wrong with what you put in Appwrite for the oauth configuration vs what's in apple
I see. Thank you Steven, I will take a look into this.
It's werid that all AppID, Services, Keys are matching from the apple side and the appwrite side.
Is there anything else we could have missed? We have gone through this https://dev.to/appwrite/apple-sign-in-with-appwrite-2576 several times to double check.
Do we also need to add anyhting in the info.plist?
Thank you for your assistance
Can you dm me what you've set for everything?
Sure
Turns out the problem was an extra space in the value added in the Appwrite Console.
Marking this as solved now
[SOLVED] Missing Redirect URL for sign in with apple
Recommended threads
- CORS error only on tables db api After u...
I've recently updated my self hosted appwrite instance to the 1.8.0 and updated my frontend with the tables db apis but strangely, even if I'm able to log in, g...
- [SOLVED] Access ExecutionStatus of a fun...
I am calling a cloud function from the newest Flutter SDK 20.2.1with the `xasync: false` flag and get the result, but the `execution.status` is not a String and...
- Appwrite isn't accepting the api from se...
Error creating user: AppwriteException: Server Error type: 'general_unknown', response: '{"message":"Server Error","code":500,"type":"general_unknown","versi...