Skip to content
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

Apple login in flutter run only one time but not working in second time and getting this error #334

Closed
Sayedmdkaif opened this issue Oct 26, 2022 · 10 comments

Comments

@Sayedmdkaif
Copy link

AuthorizationAppleID(001745.849ed9d3f6414afabfa47794178d1a4f.1018, null, null, null, example-state).

@tp
Copy link
Collaborator

tp commented Oct 27, 2022

AuthorizationAppleID(001745.849ed9d3f6414afabfa47794178d1a4f.1018, null, null, null, example-state).

This is working as designed (by Apple). Subsequent "logins" (after the initial registration) return null for givenName, familyName, and email.

@Sayedmdkaif
Copy link
Author

in the next login how it will work?

@HenriBeck
Copy link
Member

@Sayedmdkaif you need to save these details on your server

@Sayedmdkaif
Copy link
Author

after saving detail how to login next time?

@HenriBeck
Copy link
Member

I would suggest reading into the topic on Apples Developer web or using Firebase to handle such things for you

@Sayedmdkaif
Copy link
Author

could you please give me the link of topic on apple devleoper web

@Sayedmdkaif
Copy link
Author

are you sure this problem not come by using firebase?

@Sayedmdkaif
Copy link
Author

any reply?

@tp
Copy link
Collaborator

tp commented Oct 28, 2022

are you sure this problem not come by using firebase?

As said, this is by Apple's design to only return name & email on the initial sign up (also see the various questions about this here in the issue tracker). There is nothing the plugin can do here to help you there. It's the implementors responsibility to save that data somewhere if they want to retrieve it later (by the user account ID, which is always given in the AuthorizationAppleID class).

I don't see anything Firebase-related in the issue described, this will behave the same way no matter what backend you use.

Whether or not Firebase does support storing name & email and thus could help you in retrieving that data later on I don't know. All implementations I have seen use a in-house backend implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants