Skip to content
Back

SignUp with Apple failed

  • 0
  • Self Hosted
  • Auth
  • Apple
Eric
23 Jul, 2025, 06:38

Hi, I tried to implement the Sign-In-With-Apple functionality in my iOS-App. It almost works, because appwrite is already creating the user, but on the client-side i cannot login. When the user is done confirming the Apple-Screen the browser windows stays open saying: {"message":"Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details.","code":404,"type":"general_route_not_found","version":"1.7.4"}

I am almost 100% sure I set everything up correctly, also the Service Identifier with the returnURL. But clearly I miss something. Does anyone knows whats up here? Thank you

TL;DR
There are issues with SignUp with Apple, specifically relating to a redirecting problem after Face ID scan. Developers are advised to either wait for the PR for the template to be merged or to consider going all in on the native Sign In with Apple approach. A suggested alternative is to use the safari remote debugger to analyze network logs for error messages regarding authentication code issues. The provided GitHub link contains more information and ongoing discussions regarding the matter.
Eric
23 Jul, 2025, 06:38

SignUp with Apple failed

Steven
23 Jul, 2025, 18:43

on other platforms or on older ios devices, it's in the webview

Cutluk
23 Jul, 2025, 18:45

Okay maybe I miss understood as right now a safari web view is what’s prompting me to sign in. And then giving me the error after Face ID scan

Cutluk
23 Jul, 2025, 18:46

The error is in a safari window that’s a sheet over my app

Steven
23 Jul, 2025, 19:08

no, there's another bottomsheet above the webview

Steven
23 Jul, 2025, 19:12

[app] [webview] [bottomsheet]

Cutluk
23 Jul, 2025, 19:12

Okay yeah that’s what I get

Steven
23 Jul, 2025, 19:13

[app] [webview]

Steven
23 Jul, 2025, 19:13

it used to just be like this

Cutluk
23 Jul, 2025, 19:14

So is the pr you linked fixing this? Because after I scan my face it goes to this page or the page Eric is describing

Steven
23 Jul, 2025, 19:15

The PR is for a Appwrite Function template that you can use as an alternative to account.createOAuth2Session() that doesn't use any webview so you won't have that redirect issue

Cutluk
23 Jul, 2025, 19:16

I gotcha, so will my current approach not work? Do I need to wait for that pr to be merged?

Eric
23 Jul, 2025, 19:26

My Page is more looking Like This, but it still is a redirecting issue.

Would you suggest to wait for a merge?

Cutluk
23 Jul, 2025, 19:30

I've gotten that too when I add a

TypeScript
           success: "\(api.appwriteEndpoint)/auth/oauth2/success",
            failure: "\(api.appwriteEndpoint)/auth/oauth2/failure",

to my createOAuth2Session

Eric
23 Jul, 2025, 20:32

And how do you get the other page?

Cutluk
23 Jul, 2025, 21:07

I omit the success and failure becuase from my understanding you don't need them as the callback url in the service ID should be able to handle the redirect.

Cutluk
23 Jul, 2025, 21:07

But I very well could be wrong as it's not working lol

Steven
23 Jul, 2025, 22:19

your current approach will not work. you can either:

  1. wait for us to publish an article on how to use the Appwrite Function
  2. deploy the Appwrite Function yourself
Cutluk
29 Jul, 2025, 03:15

How long do you think it will take for this article/docs to be released and PR merged?

Steven
29 Jul, 2025, 22:29

could take a couple weeks or so depending on testing and reviews

Eric
19 Aug, 2025, 18:55

Any news regarding the docs?

Steven
20 Aug, 2025, 19:32

we're still working on getting it added to the Console.

That said, you shouldn't be blocked. You should be able to deploy https://github.com/appwrite/templates/tree/main/dart/sign_in_with_apple

Steven
23 Aug, 2025, 01:00

The template is available in the Appwrite Console now

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more