Skip to content

Commit

Permalink
release(required): set auth config to oAuthStore (#13171)
Browse files Browse the repository at this point in the history
* chore: set AuthConfig in oauth store
  • Loading branch information
israx authored Mar 25, 2024
1 parent e4d9c40 commit 5da2647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import {
AuthConfig,
AuthTokens,
CognitoUserPoolConfig,
FetchAuthSessionOptions,
Hub,
} from '@aws-amplify/core';
Expand Down Expand Up @@ -52,6 +53,7 @@ export class TokenOrchestrator implements AuthTokenOrchestrator {
};

setAuthConfig(authConfig: AuthConfig) {
oAuthStore.setAuthConfig(authConfig.Cognito as CognitoUserPoolConfig);
this.authConfig = authConfig;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@
"name": "[Auth] confirmSignIn (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ confirmSignIn }",
"limit": "26.45 kB"
"limit": "26.48 kB"
},
{
"name": "[Auth] updateMFAPreference (Cognito)",
Expand Down

0 comments on commit 5da2647

Please sign in to comment.