patelmayankce / react-apple-login

A Apple Log-in Component for React
MIT License
65 stars 21 forks source link

Not getting user info from the response #52

Open prashant03Dev opened 9 months ago

prashant03Dev commented 9 months ago

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 commented 9 months ago

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

seferdemirci commented 1 month ago

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.