ananay / passport-apple

Passport strategy for Sign in with Apple
https://passport-apple.ananay.dev
142 stars 49 forks source link

Apple actually sends email on subsequent logins #36

Closed nesro closed 2 years ago

nesro commented 2 years ago

Hello fellow developers,

As I am debugging our app, I found out that on the first login, Apple indeeds sends: name, email and "appleId" (idToken.sub).

But on subsequent logins, Apple still sends email, "appleId" (idToken.sub) but indeed a name is missing.

This fact is slightly different from what is written in the README:

⚠️ Important note: Apple will only provide you with the name and email ONCE which is when the user taps "Sign in with Apple" on your app the first time.

Since names are not so important and emails are crucial (users can ask for reset password), this information might be useful to someone.

If someone can confirm this, README could be updated.

Thanks, Tomas

ananay commented 2 years ago

That's interesting, I remember it only sends "sub". I can look into this and update the README accordingly if that's the behavior exhibited. Thanks for filing an issue!

ananay commented 2 years ago

Thanks for opening this issue! This is infact true and looks like this is the new behavior implemented. I've reflected the readme accordingly.