a-tokyo / react-apple-signin-auth

 Apple signin for React using the official Apple JS SDK

Home Page:https://a-tokyo.github.io/react-apple-signin-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

using usePopup=true results in the loss of the request settings

makeoverweb opened this issue · comments

Hello, tell me why when using usePopup in the request parameters on https://appleid.apple.com/appleauth/auth/oauth/authorize is form_post replaced by web_message?And the scope is also lost.And if you specify usePopup=false, then everything is fine.
But this is inconvenient, I would like to perform authorization using usePopup.

Hey @makeoverweb This is a limitation by Apple SDK itself, not this library.

Is there a way I can help you?

@a-tokyo It turns out that if I use usePopup, I lose the entered parameters.And if you do not use usePopup, then in case of successful authorization on the apple side, I am redirected to the redirectUrl that I specified.And from there, I also lose access to management.
Please tell me, one option that remains is to redirect the client in the response link from the backend.There are no other options?

@makeoverweb I think you can make use of the state param to retain some data upon successful redirection