amazon-archives / amazon-cognito-js

Amazon Cognito Sync Manager for JavaScript
http://aws.amazon.com/cognito
Apache License 2.0
202 stars 83 forks source link

AWS.config.credentials.get() not using cached CognitoIdentityCredentials when starting offline. #39

Closed johnborges closed 7 years ago

johnborges commented 7 years ago

Steps to reproduce:

  1. Call AWS.config.credentials.get()
  2. Verify CognitoIdentityCredentials exists.
  3. Close app.
  4. Enable Airplane Mode / Disconnect Network
  5. Launch app and call AWS.config.credentials.get(). Produces: Error: Network Failure(…)

Shouldn't the last step use the cached CognitoIdentityCredentials which was already retrieved?

johnborges commented 7 years ago

Moving issue to aws/aws-sdk-js