a-tokyo / react-apple-signin-auth

 Apple signin for React using the official Apple JS SDK
https://a-tokyo.github.io/react-apple-signin-auth
MIT License
104 stars 13 forks source link

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

Closed makeoverweb closed 3 years ago

makeoverweb commented 3 years ago

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.

a-tokyo commented 3 years ago

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

Is there a way I can help you?

makeoverweb commented 3 years ago

@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?

a-tokyo commented 3 years ago

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