-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi,
I installed cognitocurl like this: yarn global add cognitocurl
When I run the following (details are replaced obv 😄):
cognitocurl --cognitoclient CLIENT_ID --userpool USER_POOL_ID --token --username USER_NAME --password USER_PASSWORD
First I am prompted to enter a username and password which should not happen from what the docs says but also once I enter the details I get the following error:
ReferenceError: navigator is not defined
at /Users/xxxx/.config/yarn/global/node_modules/amazon-cognito-identity-js/lib/CognitoUser.js:552:17
at /Users/xxxx/.config/yarn/global/node_modules/amazon-cognito-identity-js/lib/AuthenticationHelper.js:188:4
at BigInteger.bnModPow [as modPow] (/Users/xxxx/.config/yarn/global/node_modules/amazon-cognito-identity-js/lib/BigInteger.js:764:2)
at AuthenticationHelper.generateHashDevice (/Users/xxxx/.config/yarn/global/node_modules/amazon-cognito-identity-js/lib/AuthenticationHelper.js:182:10)
at CognitoUser.authenticateUserInternal (/Users/xxxx/.config/yarn/global/node_modules/amazon-cognito-identity-js/lib/CognitoUser.js:534:24)
at /Users/xxxx/.config/yarn/global/node_modules/amazon-cognito-identity-js/lib/CognitoUser.js:397:21
at /Users/xxxx/.config/yarn/global/node_modules/amazon-cognito-identity-js/lib/CognitoUser.js:378:15
at /Users/xxxx/.config/yarn/global/node_modules/amazon-cognito-identity-js/lib/Client.js:71:28
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Any idea what the issue could be?
LeonardoTredese
Metadata
Metadata
Assignees
Labels
No labels