Skip to content
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

ReferenceError: navigator is not defined #23

Open
anas10 opened this issue Jul 24, 2020 · 0 comments
Open

ReferenceError: navigator is not defined #23

anas10 opened this issue Jul 24, 2020 · 0 comments
Assignees

Comments

@anas10
Copy link

anas10 commented Jul 24, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants