#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.

#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.