-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Auth confirmSignIn send deviceName with value '' in Google chrome using Simulator #14100
Comments
Hi @luke92 thanks for opening this issue. Could you look - on the failed Cognito endpoint requests, what were the values of the |
Yeah This is working But those not (I think The second fails because needs the previous one) x-amz-target:
Response headers
Request Headers
|
Hello, @luke92 and thanks for opening this issue with all the details and context here. As of v6.3.0 of Amplify, we add a default Can you confirm @HuiSF request above as well as if you have device tracking enabled within Cognito? It sounds like this is expected behavior and we can consider this a feature request to improve the testing behavior when using simulated devices and how we handle the device name string. |
@luke92, thanks for the quick replies! We'll look into making improvements to how we handle this when using simulated devices and follow up with any further questions. |
Does this help you? |
Yes, thanks for confirming @luke92. We're reviewing a fix for this internally and will update the label on this to be a bug. |
This fix is testable via installing the npm install aws-amplify@unstable |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
I have a problem with the AWS AMPLIFY library for the authentication service.
We are migrating an application from Angular to React, and in React we are having an issue where the confirmSignIn method sends an empty DeviceName in the payload.
It turns out that the problem occurs when using Google Chrome, but with Safari this problem does not occur.
In Angular, in fact, this parameter is not sent and it works fine.
Expected behavior
If DeviceName is empty should not send in the payload, or send always deviceName
Reproduction steps
Code Snippet
I tried using this
And this
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: