/auth/authorize?response_mode=web_message not firing events

I am following the instructions here https://developer.apple.com/documentation/signinwithapplejs/configuring_your_webpage_for_sign_in_with_apple


When I use `response_mode=web_message` I cannot see the events being fired.


I can see `AppleIDSignInOnFailure` being fired when I close the window (using the browsers 'X' button). I cannot see either `AppleIDSignInOnSuccess` or `AppleIDSignInOnFailure` fired when clicking `Cancel` or `Continue` on the pop-up.


I am using Chrome for this testing.


Is `usePopup` / `response_mode=web_message` ready for production use ?

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.

/auth/authorize?response_mode=web_message not firing events
 
 
Q