-
Notifications
You must be signed in to change notification settings - Fork 226
After Revoking Apple ID (Stop Using Apple ID) not getting full name and email on next login attempt #340
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
Comments
Unexpected. Do you have version information of all the components of the system under test (device model number, device operating system, relevant package versions from package.json, xcode version etc)? https://stackoverflow.com/help/how-to-ask The FAQ you list was developed via experience / test results from users of the library. I personally did not do the testing or observe the results so I don't have the experience to say if it used to work correctly or not. I also do not have time to do the testing now, with apologies. I'm open to any PR either updating documentation or altering code as needed depending on what you learn via testing and/or any responses you get from the Apple discussions |
any update on this? |
hi team, |
I waiting also for some solution. |
Also suddenly getting this issue of no displayName or email. Using version 2.3.0 of library. Have tried the following:
Email address is now also not being stored in Firebase. Code for Apple Sign In
|
We're having the same issue here. Any update would be very appreciated |
After checking Apple Settings > Sign In, we noticed that the token was not actually revoked in the first place. That's probably why you're not receiving user information upon next login. Not sure what's wrong with the revokeToken method though, it seems to not resolve the promise. |
I have managed to get the Apple token revoking by following these setup instructions closely and using this function.
The problem I'm having now is that, even for new users, I am no longer getting the users name, only the email address. This is my JS function for Sign In
|
The issue still persist |
I also encountered this problem in version 2.3.0 |
I am now getting the fullName after the user revokes their access. However, it does not get saved to the user record in Firebase unless I systematically update the profile. Is there a better way to do this than calling
|
have the same issue |
1 similar comment
have the same issue |
Having the same issue. |
any solution? |
I was running into this on my simulator. Didn't get email field in the decoded JWT, and it was null in the initial auth response. Clearing the login from Apple Id logins didn't work. I logged out of iCloud entirely and deleted my app from the simulator. That seemed to fix the issue. I'm not seeing the expected behavior of email present in auth response of first auth attempt, then in the JWT on subsequent attempts. |
I am running into this issue as well. I can't revoke to show the apple sign in popup again |
Still running into the same issue. Even after revoking I cant get email and name again when I try to login with apple |
@Zaryyab-Dev I logged out of my iCloud ID from my device and then logged in again. After that, I tried signing in with Apple from the app, and it worked. |
You saved my day |
Yeah, I'm getting something similar on This flow does not work:
And if I do the flow above, and then sign-out and sign-in from iCloud, and try to sign-in again without deleting the user, user is now prompted to This flow works:
This is the sign-in code that I got from the docs:
I haven't tried on a real device yet. Version: I have downgraded to My question is: Besides signing-out-and-in from iCloud, is there another way to make sure to prompt the user for It's fine if we don't get name and email on subsequent logins, but not right after deleting the user from Firebase auth, as it creates a user without email identifier. For example, with
|
Even worse is that this issue might cause users to end up with 2 firebase auth, one for Apple and one for Google, even when my Firebase Auth is configured to merge accounts with the same email automatically. This is the flow:
|
Just replying to my own comments above. I just tested on a real device and the whole delete account and recreate account flow worked flawlessly. After deleting the account and revoking the token, user was again prompted to share their email and everything worked out fine. Maybe this issue I've described only happens in the simulator or maybe it was related to my Expo dev build (with the expo dev client). |
The FAQs say that in order to receive the full name and email again, you must revoke Apple ID access for the app. After logging out of the app, revoking Apple ID access (Settings > Apple ID > Sign-In & Security > Sign in with apple > My App > Stop Using Apple ID), and then logging in again, I'm still not seeing full name and email in the response. I was also expecting to be prompted to share/ hide my email address but that didn't pop up either.
Here is the code:
Other things I've tried:
[Error: [auth/invalid-credential] The supplied auth credential is malformed or has expired.]
but realized this was because I was using firebase local auth emulator. After switching to the hosted firebase auth, revokeToken did work successfully, however, the main problem still persists.The text was updated successfully, but these errors were encountered: