Hi Developers,
Let's imagine there's an app need to store the email of the user who signs in with Apple for later communication. What happens If they decided not to share their email.
According to Apple's documentation, a unique, random email address is created. The app will use this email as a proxy if it wants to send an email to the user.
How can the developer retrieve this email, since if the user hides their email, there will be nil returned on email property?
If anyone have experimented on this matter, please enlighten me with the approaches.
Thanks in advanced.
Hi Alfie,
If you request an email address when signing in with Sign in with Apple.
The first time a user creates an account with you, the user will be prompted to either share their real email address, or hide it (which will create a unique, random email address so that you can comunicate with the user, without the user sharing his real email address.
This random email address will be returned on the email property of the credential.
It is important to note that this will only be retreived to you the first time the user signs in to your application, all subsequent login attempts will only return the User identifier to the app and not the email address or name.