-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use w/ iOS client instead of web? #13
Comments
@obibring I think this should work for all server-side aspects of Apple Sign In. However, I'm not sure since I haven't tried Sign in with Apple on an iPhone. Before I can confidently claim that it's possible, it'll take me some time to test out if it works and I'll get back to you here with the solution once I've tested it out. I'm leaving this open in case someone wants to jump in and help. |
I've also been working on this. I'm trying to use the authorizationCode as the code in the authorization_code request but I'm getting back invalid_grant. Have you made any headway? |
Maybe it's too late but for the others, I had this issue and I managed to fix it thanks to this post on Apple's forum. If the |
Thank you guys! Really appreciate it 🙌🏻 |
@ananay what about the redirect_uri parameter? |
@mtebele I haven't used it on iOS, but I believe that stuff would deep link back to your application (I think). Correct me if I'm wrong or if someone has a better solution! |
Thanks for your response. I'm debugging it and will tell you once it's running. Regarding to the code parameter of the |
You should not use redirect_uri since iOS handles everything internally. You just have to generate an authorization code using the API and send it to your server for verification. I implemented it with Flutter so I don't know about React Native. |
Ok great. I'm not using redirect_uri and it works fine. When I call How are you managing the validation of a user on login? |
I only use it for login, so I don't bother with refreshToken and don't store the token anywhere. I only store the appleId.
|
The problem of 400 can check whether the passed privateKey, that is, the second parameter, is blank removed during initialization. |
Changed to app id for native side auth but spent some time because i did not know this: |
I'm trying to wrap my head around Apple's documentation and am finding it confusing. Is this library sufficient for performing the server-side aspects of Apple sign in when the authorization code is provided by a native iOS application? Are there steps that would need to be omitted / changed?
TIA
The text was updated successfully, but these errors were encountered: