-
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.SignIn() with Custom_Auth not returning NewDeviceMetadata #12220
Comments
Hi @aaamoshd thank you for opening this issue. Since you are using Custom Auth flow, you will also need to setup any additional challenges/steps that you require. Can you confirm that you have also setup |
So does it mean that after In my scneario
I thought the |
hello @aaamoshd to have device tracking with custom-auth working, first you need to:
So the DEVICE_SRP_AUTH will be returned as long as the device was remembered and it is used to bypass MFA. And the library will handle it under the hood. Take in mind that if you are using |
Here's a lambda that may help @aaamoshd :
|
Hi @aaamoshd - closing out this issue. Let me know if you have any more questions. |
@nadetastic - I just wanted to follow up as I am seeing the same behavior as @aaamoshd. There seems to be a separate conversation #11833 (comment) which reported this issue as a known area in need of improvement. I have followed the recommendations of @israx and am still running into problems with |
hello @travefymcarino , are you seeing that behavior while using amplify-js v6? You can also open a new ticket, so we can keep track of your issue. |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When using
CUSTOM_AUTH
flow in Amplify SDK for React, even on a new device afterPASSWORD_VERIFIER
noNewDeviceMetadata
is sent back thus preventing from marking the logged in device as remembered. User Pool has Device Tracking set toAlways
.After a successful issuance of tokens when trying to perform
I am getting
"Device tracking has not been configured in this user pool"
which is also a little misleading enum description used for all errors withDeviceKey
not foundExpected behavior
Cognito to send NewDeviceMetadata when no DeviceKey is sent on the initial sign in request.
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
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
The text was updated successfully, but these errors were encountered: