What is the equivalent to CognitoDeviceHelper.java or CognitoDeviceHelper.cs for JavaScript / Node / React JS #5995
Unanswered
ManuelGuerreroVana
asked this question in
Q&A
Replies: 2 comments
-
Maybe the generateHashDevice function here can help me ? But it seems that is not available in |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @RanVaknin , sorry for tagging you like this, can you help me man, or one of your coworker 😔 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In C#, we have https://github.com/aws/aws-sdk-net-extensions-cognito/blob/master/src/Amazon.Extensions.CognitoAuthentication/Util/CognitoDeviceHelper.cs
In Android/Java, we have https://github.com/aws-amplify/aws-sdk-android/blob/main/aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/mobileconnectors/cognitoidentityprovider/util/CognitoDeviceHelper.java
Where can I find a CognitoDeviceHelper for JS /
React JS
?I ask because I want to get the
Salt
andPasswordVerifier
to call the ConfirmDeviceCommand in JS, and even though it says that the Salt and PasswordVerifier are not needed, I get an error If I don't pass those values 😅In java is as easy as this:
I tried to create a function to get those values, but it works sometimes and sometime it does not (the error I get is that one of the values have a negative value which I do not see).
Can somebody help me, I just want the equivalent to the
CognitoDeviceHelper
in JS ?This is the function I created for it but it does not work.
Beta Was this translation helpful? Give feedback.
All reactions