You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this along with the aws-sdk and notice some errors related to the way aws-sdk uses localstorage.
using code like
let credentials = new AWS.CognitoIdentityCredentials({
IdentityPoolId: Config.IdentityPoolId,
Logins: {
['cognito-idp.' + Config.Region + '.amazonaws.com/' + Config.UserPoolId]:
that.$store.state.cognito.user.tokens.IdToken
}
})
AWS.config = new AWS.Config({
credentials: credentials, region: 'us-east-1'
})
let s3 = new AWS.S3()
when I login as a new user the global AWS config sometimes picks up the previous users ID with the current users IdToken.
Easily solved by calling localStorage.clear() before logging in with a different ID.
This may not be a concern of this library, but I wanted to make a note in case others experienced the issue. It only comes up in testing when we rapidly test multiple accounts using automation.
The text was updated successfully, but these errors were encountered:
I'm using this along with the aws-sdk and notice some errors related to the way aws-sdk uses localstorage.
using code like
when I login as a new user the global AWS config sometimes picks up the previous users ID with the current users IdToken.
Easily solved by calling localStorage.clear() before logging in with a different ID.
This may not be a concern of this library, but I wanted to make a note in case others experienced the issue. It only comes up in testing when we rapidly test multiple accounts using automation.
The text was updated successfully, but these errors were encountered: