react-apple-login icon indicating copy to clipboard operation
react-apple-login copied to clipboard

Not getting user info from the response

Open prashant03Dev opened this issue 2 years ago • 2 comments

#STEPS Followed:

-install npm i react-apple-login library. -Use code snippet as per mentioned below:

< AppleLogin clientId = { APPLE_CLIENT_ID } redirectURI = { ${window.location.origin} } render = { (renderProps) => ( < Button onClick = { renderProps.onClick } color = "secondary" fullWidth size = "large" startIcon = { Icons.Apple } className = "max-w-[343px] items-center justify-center m-auto flex h-12" > < span className = "font-medium text-base leading-7" > Continue with Apple < /span> < /Button> ) } responseMode = "query" callback = { handleAppleSignIn } scope = "email name" / >

-After using this code snippet,getting idtoken in response.

image (7)

prashant03Dev avatar Nov 21 '23 05:11 prashant03Dev

@patelmayankce @kishorpawar @leopucci Suggest me the way to get the user info

prashant03Dev avatar Nov 21 '23 05:11 prashant03Dev

According to Sign in with Apple documentation, Apple only provides the user's name and surname during the very first authorization request. If the user signs in again, Apple will not include the name and surname information in subsequent tokens.

seferdemirci avatar Jul 28 '24 12:07 seferdemirci