Skip to content

Commit

Permalink
fix: amplify configure with auth userGroups (#14046)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashwin Kumar <[email protected]>
  • Loading branch information
ashwinkumar6 and Ashwin Kumar authored Dec 2, 2024
1 parent 05e84a1 commit fb8dadb
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 fb8dadb

Please sign in to comment.