amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
423 stars 232 forks source link

useCodeGrantFlow calls xhr.open twice (throws 'Cannot open, already sending') #74

Open yonahforst opened 6 years ago

yonahforst commented 6 years ago

when i comment out this line, it works: https://github.com/aws/amazon-cognito-auth-js/blob/808e304aac9f61b4a1e8d9af0f8f5196d32f3ce8/src/CognitoAuth.js#L541

(using it in a react native app)