-
Notifications
You must be signed in to change notification settings - Fork 48
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
The user email is shared only once #24
Comments
Uh ok seems the expected behavior. https://developer.apple.com/forums/thread/121496 |
I've faced same problem few days ago. |
Using NativeStorage doesn't suffice: if the user uninstalls and reinstalls the app (thus clearing NativeStorage), the device still stores the Apple Sign In configuration from the first time. Hence, on reinstall, it will be treated as just another login and, since NativeStorage was cleared), the app has no way of every retrieving the email again. The user would have to manually go into Settings->Apple ID->Password & Security->Apps Using Apple ID->{appName} and then tap on "Stop Using Apple ID". This is probably not the best way to handle this. |
The only reliable solution is to communicate the token to your backend servers, which then communicates to Apple servers, where you get the email on every request: Not sure if it is valid, secure or even possible (i mean without rejection in App Store review) to communicate with Apple REST API directly from the application, without a intermediate backend. |
window.cordova.plugins.SignInWithApple.signin({ requestedScopes: [0, 1] }, function (succ) { |
@zhicheng-Fu Thanks, this addresses this issue perfectly! |
for jwt_decode use this |
Hi, Is it normal that the user email is showed only on the first sign up?
...on the following logins it will be just and empty string.
Thanks
The text was updated successfully, but these errors were encountered: