Closed paulsjohnson91 closed 2 years ago
This means that currently no apple users are able to sign up for the app. I would settle at this point for any workaround to be able to sign up users again, via either an app update or cognito update, even if that meant that the name fields are populated with dummy information
Hi @paulsjohnson91 👋 Thank you for raising this issue. I changed my attribute mapping for Apple to yours but I wasn't able to reproduce the exact issue you're getting (Invalid+user+attributes). I was still able to sign up. Only thing I noticed was that I wasn't getting the newly checked off given_name or family_name attributes.
The reason for that seems to be:
Unlike most OpenID Connect providers, Apple only provides scopes on the first user sign-in for a services ID, for privacy reasons
So, in order to provide new user information to my app, I had to sign into my Apple ID and remove my app from the Apps Using Apple ID
section.
Afterwards I was able to get the new information signing up with a new account
That being said, I think the error you're getting is more related to the regular User Pool attribute settings. Do you have family name
and given name
set to Required here?
If so, considering the way Apple doesn't provide new user info on subsequent logins, the first/last name attributes won't get mapped to the user pool given/family name attributes on an existing account and might explain why you're getting that error. I would try my workaround above and remove the the app from your App ID and sign up again.
Any new users should still be able to sign up for your app.
Hi @chrisbonifacio thanks for the quick response. I've been doing some further research and have reached the same conclusion, the users I was testing with had previously had an account and creating a new Apple account I was successfully able to sign in. A very frustrating feature from Apple, it doesn't sound like there is any possible work around for this from amplify / cognito perspective.
For anyone who discovers the same thing in the future, I've discovered that if the user goes into security and passwords
on their device and deletes the login for the app, then they are able to sign up again. Not a perfect solution but it will have to do.
Thanks
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Categories
auth
Environment information