-
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
login success? but no info, no email or user name, just token #5
Comments
You get this informations only in the very first request. In the first request you'll get at least the givenName & familyName & email. You can go to https://appleid.apple.com/account/manage 👍 |
Thanks Patrick |
I'm having the opposite issue. For some reason this plugin treats every sign-in attempt as the first attempt. I am prompted for an name, email address, and then the callback gets all the info. I checked the appleid.apple.com/account/manage, and the app is registered there. What is the correct behavior? What can I do to make it not do that? Do I need to exchange the auth code with their servers or something? |
@dminkovsky what do you mean? In theory you're geting the But when now the user log in via the website - not the app / not the cordova plugin sign in with apple - then you're not getting the user first/last name and more details. So I think its right when you get all via the plugin. But now check the sign in with Apple on a website and you'll not get the details. On the App maybe the bahaviour has changed. And maybe the behavior here changed, too. Maybe thats the reason. |
@patrickbussmann Sorry I was not clear. Let me explain better: In the web version of my app, I implemented the Apple Sign In OAuth web flow, and in that version, the first time a user attempts to authenticate, they are presented with the option to specify a name and email (or to use the relay proxy). Then, after that, the fact that they've authenticated with my application is stored in their AppleID account, and subsequent authentications do not prompt them to specify a name and email address. They can forget my app by going to appleid.apple.com/account/manage, but otherwise they are only prompted for their password when they authorize. In this native plugin, I am getting prompted for a name/email every time. It treats every authentication as the first time I've authenticated. Is there something I need to do for it to remember that the user has already authenticated with my app? I don't want to ask users their name/email every time they log in, just the first time. |
Added an SO question https://stackoverflow.com/q/63120021/741970 @paulw11 maybe you know? |
Thats what I mean @dminkovsky. When you did it your user is registrated and will not see the selector for name and email again. Ah ok now I see you SO question. |
I'm sorry, I don't think I've communicated my question. Maybe it's clearer on SO? In a nutshell: I don't want the user to be prompted for a name/email every time they authenticate. Only the first time.
|
I understand the problem 😉
Look. This is an example code.
|
Thank you, I am glad it makes sense! It wasn't the backend though. It was something way more banal... I was using a simulator, and on the simulator, it's the undesired behavior I describe. On a real device, though: works as desired. Sorry to bother, and thanks for helping me troubleshoot. |
Installed the plugin with no errors and configured the backend, certificates etc. After sign in with Apple, I am getting an object with these properties: email, state, identityToken, fullName, user. However the email, state and fullName properties are empty. Only an identity token is provided.
Shouldn't there be some email address - whether one from apple or the user's , and some name?
email: ""
fullName: {nickname: "", phoneticRepresentation: {}, familyName: "", namePrefix: "", givenName: "", …}
identityToken: "eyJraWQiOiJBSURPUEsxIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2FwcGxlaWQuYXBwbGUuY29tIiwiYXVkIjoiY29tLnBldHRpbmdjbHViLmFwcCIsImV4cCI6MTU3M…"
The text was updated successfully, but these errors were encountered: