I had the same problem testing on localhost. Popup window wouldn't disappear when clicking either "Continue" or "Cancel" button and neither the AppleIDSignInOnSuccess nor AppleIDSignInOnFailure events would fire unless clicking the browser's close button.I fixed it by using ngrok.com and updating all relevant URIs/domain names in the service ID upstream at apple and the redirect URI in my local scripts. The redirect-uri must specify the same fully qualified domain name (including subdomain) as the page where the popup is triggered from. Using something like ngrok.com and specifying the correct domain for the relevant service ID should solve it.Would be nice if the Apple JS SDK didn't fail silently in this particular case.
Post
Replies
Boosts
Views
Activity
I had the same problem testing on localhost. Popup window wouldn't disappear when clicking either button and neither the AppleIDSignInOnSuccess nor AppleIDSignInOnFailure events would fire.The redirect-uri must specify the same fully qualified domain name (including subdomain) as the page where the popup is triggered from. Using something like ngrok.com and specifying the correct domain for the relevant service ID solved the problem for me.Would be nice if the Apple JS SDK didn't fail silently in this particular case.