Skip to content

Commit

Permalink
release(required): fix amplify configure with auth userGroups (#14049)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinkumar6 authored Dec 3, 2024
2 parents b391673 + 4278be2 commit f670ce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/core/__tests__/parseAmplifyOutputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ describe('parseAmplifyOutputs tests', () => {
unauthenticated_identities_enabled: true,
mfa_configuration: 'OPTIONAL',
mfa_methods: ['SMS'],
groups: [{ ADMIN: { precedence: 0 }, USER: { precedence: 0 } }],
},
};

Expand Down Expand Up @@ -174,6 +175,7 @@ describe('parseAmplifyOutputs tests', () => {
scopes: ['profile', '...'],
},
},
groups: [{ ADMIN: { precedence: 0 }, USER: { precedence: 0 } }],
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/singleton/AmplifyOutputs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface AmplifyOutputsAuthProperties {
unauthenticated_identities_enabled?: boolean;
mfa_configuration?: string;
mfa_methods?: string[];
groups?: Record<UserGroupName, UserGroupPrecedence>[];
groups?: Partial<Record<UserGroupName, UserGroupPrecedence>>[];
}

export interface AmplifyOutputsStorageBucketProperties {
Expand Down

0 comments on commit f670ce2

Please sign in to comment.