From d748813d42f939dee4223dbf92366f9a5c045bb9 Mon Sep 17 00:00:00 2001 From: josefaidt Date: Thu, 4 Jan 2024 14:24:35 -0800 Subject: [PATCH 1/2] immutable -> mutable --- .../gen2/build-a-backend/auth/manage-user-profile/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/gen2/build-a-backend/auth/manage-user-profile/index.mdx b/src/pages/gen2/build-a-backend/auth/manage-user-profile/index.mdx index a709762830a..a98dd39cb61 100644 --- a/src/pages/gen2/build-a-backend/auth/manage-user-profile/index.mdx +++ b/src/pages/gen2/build-a-backend/auth/manage-user-profile/index.mdx @@ -62,7 +62,7 @@ export const auth = defineAuth({ + userAttributes: { + birthdate: { + required: false, -+ immutable: true, ++ mutable: true, + }, + }, }); @@ -85,7 +85,7 @@ export const auth = defineAuth({ }, // do not allow changing of an attribute's value birthdate: { - immutable: true + mutable: true } } // highlight-end From b9243607a2405d2ebb915e1a972c88cc05dee9ed Mon Sep 17 00:00:00 2001 From: josefaidt Date: Thu, 4 Jan 2024 14:24:48 -0800 Subject: [PATCH 2/2] true -> false --- .../gen2/build-a-backend/auth/manage-user-profile/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/gen2/build-a-backend/auth/manage-user-profile/index.mdx b/src/pages/gen2/build-a-backend/auth/manage-user-profile/index.mdx index a98dd39cb61..db87ead9af2 100644 --- a/src/pages/gen2/build-a-backend/auth/manage-user-profile/index.mdx +++ b/src/pages/gen2/build-a-backend/auth/manage-user-profile/index.mdx @@ -62,7 +62,7 @@ export const auth = defineAuth({ + userAttributes: { + birthdate: { + required: false, -+ mutable: true, ++ mutable: false, + }, + }, }); @@ -85,7 +85,7 @@ export const auth = defineAuth({ }, // do not allow changing of an attribute's value birthdate: { - mutable: true + mutable: false } } // highlight-end