-
Notifications
You must be signed in to change notification settings - Fork 203
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
App Rejected Due to Apple Login #3795
Comments
Hi @mehroozkhan, thanks for opening this issue. We'll take a look and see if we can figure out what might be happening and post updates here |
Hi @mehroozkhan , Before displaying the sign-in UI, did you check the user's auth status? One potential issue that could cause the |
@5d Thanks for your reply. Yes I do check first if the user is signed in or not through fetchAuthSession API.
|
our app got approved without changing anything in the apple login now. Very strange Apple! |
This issue is now closed. Comments on closed issues are hard for our team to see. |
@mehroozkhan I think I may have identified the issue It seems like the first time an Apple Account uses social login on an app (that is, the first time ever, of any app) the user is prompted to accept Apple Terms and Conditions for social login. This only happens once. I've now been able to reproduce this reliably, but it MUST be a new Apple Account. Once you've accepted Apple's T&C, it continues to work flawlessly. It seems like sometimes you get someone using a new Apple Account at Apple, sometimes not I'd be curious if you could duplicate this with a brand new Apple Account that you've never signed on. @sebaland @5d I'm writing something up to post on the Discord, too. I may be filing a new issue - lmk if you can try it @mehroozkhan ! |
Describe the bug
Our app has been rejected from app store multiple times because apple team keep getting error when they try Apple Login.
Message From Apple Review Team on every build submission is:
Attachment:

We have tested our apps in development mode and in Test Flight multiple times with different apple accounts, never got any error.
On Investigating the Amplify Error code, it is the AuthError.InvalidState error.
Login Code:
`func socialSignInWithWebUI(provider: AuthProvider?) async {
Also tried with the .preferPrivateSession() option, still rejected with this too.
Steps To Reproduce
We can't reproduce it on our end.
Expected behavior
Apple Review team successfully login and approve the app.
Amplify Framework Version
2.35.4
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5.10
CLI version
12.10.1
Xcode version
15.4
Relevant log output
Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
iOS 17.5.1
Device
iPad Air (5th generation)
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: