Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.

Question: With the use case 4 #677

Open
tastafur opened this issue Feb 7, 2018 · 0 comments
Open

Question: With the use case 4 #677

tastafur opened this issue Feb 7, 2018 · 0 comments

Comments

@tastafur
Copy link

tastafur commented Feb 7, 2018

This code is a sample, but it would not really be used within cognitoUser.authenticateUser because the credentials were just created with new AWS.CognitoIdentityCredentials, it would not be necessary to refresh them, it is a code the .refresh method to say that this method exists, no?

AWS.config.credentials.refresh((error) => {
  if (error) {
      console.error(error);
  } else {
       // Instantiate aws sdk service objects now that the credentials have been updated.
       // example: var s3 = new AWS.S3();
       console.log('Successfully logged!');
  }
});
@tastafur tastafur changed the title Question: With the case 4 Question: With the use case 4 Feb 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant