Skip to content
Back

[SOLVED] OAuth2 Apple Sign in "OAuth provider failed to return email" error

  • 0
  • Self Hosted
  • Flutter
Mikel
9 Mar, 2024, 11:39

Hi, I am not able to Sign in with Apple to Appwrite (self hosted), I followed this post https://dev.to/appwrite/apple-sign-in-with-appwrite-2576 and I still get that error.

I could sign in with Google by the way, but not with Apple. I'm using the iOS Simulator.

TL;DR
Developers had an issue with OAuth2 Apple Sign in receiving a "OAuth provider failed to return email" error. The problem has been solved.
D5
9 Mar, 2024, 11:43

What's the flutter SDK version you're using?

Mikel
9 Mar, 2024, 11:43

3.19.2

Mikel
9 Mar, 2024, 11:44

I will upgrade to 3.19.3 and check

Mikel
9 Mar, 2024, 11:44

I will check on a real device now too

D5
9 Mar, 2024, 11:45

This is flutter, right?

D5
9 Mar, 2024, 11:46

Or apple native?

Mikel
9 Mar, 2024, 11:46

Yeah Flutter sorry 🙂

Mikel
9 Mar, 2024, 11:47

I didn't specify that

D5
9 Mar, 2024, 11:47

No worries 🙂

D5
9 Mar, 2024, 11:47

Do you have the target version set to 11?

Mikel
9 Mar, 2024, 11:48

I have set it to 14

D5
9 Mar, 2024, 11:48

Oh, then that could be the issue. Try setting it to 11

D5
9 Mar, 2024, 11:48

In XCode

Mikel
9 Mar, 2024, 11:48

Oh ok, I thought it was 11 or above

D5
9 Mar, 2024, 11:49

Yes, I checked and it's true, but maybe that's the issue 🤔

Mikel
9 Mar, 2024, 11:49

Ok I will try that

Mikel
20 Mar, 2024, 11:04

I'm using ios target version 12.0, can't use 11.0 because xcode 15 doesn't support less than 12.0

D5
20 Mar, 2024, 11:17

Yes, you should use a version superior to 11

Mikel
20 Mar, 2024, 11:59

I have created a new Apple account with another email... it works now... the other account that I was using is my main account, isn't that strange?

Mikel
20 Mar, 2024, 12:00

Could it happen with some accounts, and not with others?

D5
20 Mar, 2024, 12:21

I think the issue was that apple doesn't retrieve again the data after first time and only the email. First time the app didn't get the email correctly and consequently after that time, it didn't got it correctly

Mikel
21 Mar, 2024, 09:37

Ok, thanks for your help!

ideclon
21 Mar, 2024, 21:03

If your issue has been solved, you can mark this post as closed by adding "[SOLVED]" to the beginning of the title

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