Apple Sign In with JS does not work on Safari

Hello, I am working on an OAuth login with Apple for our web applications. We ended up using the npm module "react-apple-signin-auth", which is based off of the apple js library.

We are using a popup setup with name and email as requested scopes.

This all works perfectly fine on Chrome/Chromium, Mozilla, etc. However, the same code base has issues on Safari browser.

We are also having troubles implementing this for our react native Webview.

It seems that after the popup is shown (after being manually allowed on the client PC), it frezes after logging in and clicking Continue. It stays with a white screen and does not return back to the origin/redirectURI.

I can see someone has a similar issue:

https://developer.apple.com/forums/thread/131438

Any clues?

Apple Sign In with JS does not work on Safari
 
 
Q