-
Notifications
You must be signed in to change notification settings - Fork 199
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
Not getting correct error message from Google signin. #3176
Comments
Hey @AmbrishPatel94, thanks for opening this issue.
Can you please provide a full code example of how you're catching that error? |
Hi Atierian, thanks for reaching out us. I am using this
|
|
Hi Atierian, I am waiting to your response. |
It looks like you accidentally closed the issue, so I'm reopening it. Thanks for the callsite example. You mentioned that you're receiving the error message in this catch let error as AuthError {
print("Sign in failed \(error )")
// here i am receiving error message invalid_request
} |
Thanks for your reply Here i am receiving this error message ▿ AuthError: invalid_request |
Thanks, that's helpful. A few more questions:
Any details would be helpful here. Thanks! |
I am using Amplify version 2.15.4 yes we are using a PreSignUp_ExternalProvider lambda trigger here. |
Thanks. The error that you're expecting to receive:
Are you providing this whole error to Cognito in your If so, can you please paste the error handling portion of the lambda here? |
We are using this for PreSignUp_ExternalProvider
|
Great, thanks. Could you try out the branch |
HI Atierian, |
This fix was included in Amplify Swift v2.16.1 Please let us know whether this new version resolves your issue. Thanks again for reporting it! |
Describe the bug
I am use following Amplify version 2.0.0-Next Major, I register new user on amplify and try to login with amplify google signin "Amplify.Auth.signInWithWebUI(for: .google, presentationAnchor: presentationAnchor, options: .preferPrivateSession())" with same user then that time i got error response "invaid_request". But i need to get response like this "invalid_request: PreSignUp failed with error {"error":{"code":409,"custom_code":"002","message":"U2FsdGVkX19xJYJt/Dckptj0KKXuBfrD3uhZScr1bBvqYF2Q29iGb7iC16MDCwLwbIVs1tNcaHQreEIopKwg9onymeCveyiCwHNzjpmPciQ3XSiQ7Oi+pVW4KyB5lUXC"}}."
Steps To Reproduce
Expected behavior
I need to get response like this "invalid_request: PreSignUp failed with error {"error":{"code":409,"custom_code":"002","message":"U2FsdGVkX19xJYJt/Dckptj0KKXuBfrD3uhZScr1bBvqYF2Q29iGb7iC16MDCwLwbIVs1tNcaHQreEIopKwg9onymeCveyiCwHNzjpmPciQ3XSiQ7Oi+pVW4KyB5lUXC"}}."
Amplify Framework Version
2.0.0-Next Major
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5
CLI version
10.6.1
Xcode version
14.2
Relevant log output
Is this a regression?
Yes
Regression additional context
No response
Platforms
iOS
OS Version
13.0
Device
iphone 13
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: