Email is returned only once

We are implementing Sign Up with Apple ID and facing the following issue:

Email is returned only on the first response. All subsequent responses for this user do not return email. But our system is email-driven.

So, if user first signs up on our TST environment then we will not be able to Sign up this user on UAT and Prod without an email in response.

Could anyone please advise how to approach this problem.

Answered by DTS Engineer in 815139022

Hi @aaabdulov,

The email is only contained within the response body of the initial authorization request. For subsequent authentications, the email can be found in the user's ID token. Please see the documentation below for more information:

Authenticating users with Sign in with Apple: Retrieve the user’s information from Apple ID servers https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/authenticating_users_with_sign_in_with_apple#3383773

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Hi @aaabdulov,

The email is only contained within the response body of the initial authorization request. For subsequent authentications, the email can be found in the user's ID token. Please see the documentation below for more information:

Authenticating users with Sign in with Apple: Retrieve the user’s information from Apple ID servers https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/authenticating_users_with_sign_in_with_apple#3383773

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Email is returned only once
 
 
Q