Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove username from username_attributes in outputs schema #1636

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/little-dodos-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@aws-amplify/client-config': major
'@aws-amplify/platform-core': major
---

removes username from username_attribute
4 changes: 2 additions & 2 deletions packages/client-config/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ interface AWSAmplifyBackendOutputs {
response_type: 'code' | 'token';
};
standard_required_attributes?: AmazonCognitoStandardAttributes[];
username_attributes?: ('email' | 'phone_number' | 'username')[];
username_attributes?: ('email' | 'phone_number')[];
user_verification_types?: ('email' | 'phone_number')[];
unauthenticated_identities_enabled?: boolean;
mfa_configuration?: 'NONE' | 'OPTIONAL' | 'REQUIRED';
Expand Down Expand Up @@ -208,7 +208,7 @@ export type CustomClientConfig = {
export const DEFAULT_CLIENT_CONFIG_VERSION: ClientConfigVersion;

// @public
export const generateClientConfig: <T extends "1" | "0">(backendIdentifier: DeployedBackendIdentifier, version: T, awsClientProvider?: AWSClientProvider<{
export const generateClientConfig: <T extends "0" | "1">(backendIdentifier: DeployedBackendIdentifier, version: T, awsClientProvider?: AWSClientProvider<{
getS3Client: S3Client;
getAmplifyClient: AmplifyClient;
getCloudFormationClient: CloudFormationClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export interface AWSAmplifyBackendOutputs {
*
* @minItems 1
*/
username_attributes?: ('email' | 'phone_number' | 'username')[];
username_attributes?: ('email' | 'phone_number')[];
user_verification_types?: ('email' | 'phone_number')[];
unauthenticated_identities_enabled?: boolean;
mfa_configuration?: 'NONE' | 'OPTIONAL' | 'REQUIRED';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"type": "array",
"items": {
"type": "string",
"enum": ["email", "phone_number", "username"]
"enum": ["email", "phone_number"]
},
"minItems": 1,
"uniqueItems": true
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-core/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ export const packageJsonSchema: z.ZodObject<{
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
}, "strip", z.ZodTypeAny, {
name?: string | undefined;
type?: "module" | "commonjs" | undefined;
version?: string | undefined;
type?: "module" | "commonjs" | undefined;
}, {
name?: string | undefined;
type?: "module" | "commonjs" | undefined;
version?: string | undefined;
type?: "module" | "commonjs" | undefined;
}>;

// @public
Expand Down
Loading