'Login with Apple fails on Apple Devices
We have implemented login with Apple Id in one of our websites which works fine in normal browsers. The same fails in apple devices like iPhone or Ipad. The website is Angular based. Please find the code segment below :
window.open(
`https://appleid.apple.com/auth/authorize?client_id=${encodeURIComponent(CLIENT_ID)}&response_type=code%20id_token&scope=name%20email&state=${state}&response_mode=${encodeURIComponent(response_mode)}&redirect_uri=${encodeURIComponent(REDIRECT_ID)}`,
'usePopup=true',
'_blank',
);
No api call is recieved at redirect uri path when accessed from iPhone or IPad. After authenticating, the signin interface from the device is hidden with no errors to display as if the authentication is successful. No api call is received in Redirect URI.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
