How to get user's email? Login with apple id

Hi

We use login using apple id feature in our website. However when it comes to apple id, it is possible for user to hide the original email and show a relay email. We have found that this relay email doesn't work

Hence looking for a possible solution to acquire the real email from the user. Is there a possibility in doing that? any help would be greatly appreciated.

Best Regards Hasintha

When someone uses Hide My Email, Apple generates a random email address - which is the email address you receive. That email address forwards emails to the user's original email address.

You don't say why/how the email "doesn't work", but if you're getting errors like "the email address doesn't exist", that's likely because user's are able to delete those relay email addresses.

The point of someone using "Hide My Email" is to hide their actual email address. There is no way you can get the user's actual email address - they didn't want to share it with you - and you should treat the email you have received as that user's email address.

If that email address is bouncing emails, then:

  • Is a user still trying to log into your website with that email address? If so, then you should let them log in (their account credentials are still valid, you're just getting bounced emails), then inform them that their email address isn't working. This is standard practice. If emails to that user are bouncing, then you ask for an updated email address.
  • If a user isn't logging in with that email, then try and send them an email after about a year saying their account will be closed/deleted in 90 days if they don't sign back in and provide a valid email address. They may or may not get the email, but at least you have a record of telling them via the only email address you have for them, that their account will be closed.

If an email from you to a Hide My Email address isn't being forwarded to the original email address, then that's an issue with Apple's Hide My Email service, and you should raise a bug here: https://feedbackassistant.apple.com/.

How have you determined it's not being forwarded? Have you set up your own HME address, sent an email to it, and not received it at the original address?

Hi @hasintha86,

Sign in with Apple uses the Private Email Relay service to forward emails from a proxy email address (provided to Sign in with Apple developers when requested) to the user's real email address.

In order to facilitate this email forwarding, you need to configure your sender email address and email domains below:

Configuring your environment for Sign in with Apple: Register email sources for communication

https://developer.apple.com/documentation/sign_in_with_apple/configuring_your_environment_for_sign_in_with_apple#3743946

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

How to get user's email? Login with apple id
 
 
Q