diff --git a/packages/core/src/singleton/Auth/types.ts b/packages/core/src/singleton/Auth/types.ts index 69d0e8fff7e..8112cd22266 100644 --- a/packages/core/src/singleton/Auth/types.ts +++ b/packages/core/src/singleton/Auth/types.ts @@ -97,12 +97,17 @@ export type AuthConfigUserAttributes = Partial< Record >; -export type AuthConfig = StrictUnion< +type AtLeastOne }> = Partial & + U[keyof U]; + +export type cognitoProviderConfig = StrictUnion< | AuthIdentityPoolConfig | AuthUserPoolConfig | AuthUserPoolAndIdentityPoolConfig >; +export type AuthConfig = AtLeastOne; + type UnionKeys = T extends T ? keyof T : never; type StrictUnionHelper = T extends any ? T & Partial, keyof T>, never>>