Skip to content

Commit

Permalink
resolves conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Noyes committed Dec 9, 2022
1 parent 5bb3b70 commit a3ef771
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions packages/core/src/Credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,6 @@ export class CredentialsClass {
identityPoolRegion || region
);

cognitoClient.middlewareStack.add(
(next, _) => (args: any) => {
args.request.headers['cache-control'] = 'no-store';
return next(args);
},
{
step: 'build',
}
);

let credentials = undefined;
if (identityId) {
const cognitoIdentityParams: FromCognitoIdentityParameters = {
Expand Down Expand Up @@ -423,16 +413,6 @@ export class CredentialsClass {
identityPoolRegion || region
);

cognitoClient.middlewareStack.add(
(next, _) => (args: any) => {
args.request.headers['cache-control'] = 'no-store';
return next(args);
},
{
step: 'build',
}
);

let credentials = undefined;
if (identity_id) {
const cognitoIdentityParams: FromCognitoIdentityParameters = {
Expand Down Expand Up @@ -475,16 +455,6 @@ export class CredentialsClass {
identityPoolRegion || region
);

cognitoClient.middlewareStack.add(
(next, _) => (args: any) => {
args.request.headers['cache-control'] = 'no-store';
return next(args);
},
{
step: 'build',
}
);

/*
Retreiving identityId with GetIdCommand to mimic the behavior in the following code in aws-sdk-v3:
https://git.io/JeDxU
Expand Down

0 comments on commit a3ef771

Please sign in to comment.