Open prashant03Dev opened 9 months ago
@patelmayankce @kishorpawar @leopucci Suggest me the way to get the user info
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.
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.