From 5da26470b8221c9348faefc1fa9d9e96bab09251 Mon Sep 17 00:00:00 2001 From: israx <70438514+israx@users.noreply.github.com> Date: Mon, 25 Mar 2024 12:33:45 -0400 Subject: [PATCH] release(required): set auth config to `oAuthStore` (#13171) * chore: set AuthConfig in oauth store --- .../src/providers/cognito/tokenProvider/TokenOrchestrator.ts | 2 ++ packages/aws-amplify/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/auth/src/providers/cognito/tokenProvider/TokenOrchestrator.ts b/packages/auth/src/providers/cognito/tokenProvider/TokenOrchestrator.ts index 1b9d75efa3a..7ac5064b18e 100644 --- a/packages/auth/src/providers/cognito/tokenProvider/TokenOrchestrator.ts +++ b/packages/auth/src/providers/cognito/tokenProvider/TokenOrchestrator.ts @@ -3,6 +3,7 @@ import { AuthConfig, AuthTokens, + CognitoUserPoolConfig, FetchAuthSessionOptions, Hub, } from '@aws-amplify/core'; @@ -52,6 +53,7 @@ export class TokenOrchestrator implements AuthTokenOrchestrator { }; setAuthConfig(authConfig: AuthConfig) { + oAuthStore.setAuthConfig(authConfig.Cognito as CognitoUserPoolConfig); this.authConfig = authConfig; } diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 9c2faceda88..6e9816a9ece 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -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)",