From d77e718cddadc351120eeddc705f557e088432de Mon Sep 17 00:00:00 2001 From: Vincent Tran Date: Fri, 29 Nov 2024 10:20:53 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: josef --- .../auth/connect-your-frontend/multi-step-sign-in/index.mdx | 4 ++-- .../auth/connect-your-frontend/sign-up/index.mdx | 2 +- .../switching-authentication-flows/index.mdx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/multi-step-sign-in/index.mdx b/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/multi-step-sign-in/index.mdx index b37ac1a69cc..b6f8d89bcbb 100644 --- a/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/multi-step-sign-in/index.mdx +++ b/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/multi-step-sign-in/index.mdx @@ -1627,7 +1627,7 @@ If the next step is `CONFIRM_SIGN_IN_WITH_OTP`, Amplify Auth has sent the user a -The result includes an `AuthCodeDeliveryDetails` member. It includes additional information about the code delivery, such as the partial email address of the recipient, which can be used to prompt the user on where to look for the code. +**Note:** The result includes an `AuthCodeDeliveryDetails` member. It includes additional information about the code delivery, such as the partial email address of the recipient, which can be used to prompt the user on where to look for the code. @@ -1998,7 +1998,7 @@ This call fetches the current logged in user and should be used after a user has If the user is signed in, it will return the current userId and username. -An empty string will be assigned to userId and/or username, if the values are not present in the accessToken. +**Note:** An empty string will be assigned to userId and/or username, if the values are not present in the accessToken. diff --git a/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/sign-up/index.mdx b/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/sign-up/index.mdx index 6f52c51d93f..c3655f4f8cd 100644 --- a/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/sign-up/index.mdx +++ b/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/sign-up/index.mdx @@ -893,7 +893,7 @@ if (confirmSignUpNextStep.signUpStep === 'DONE') { ```java // Sign up using an email address ArrayList attributes = new ArrayList<>(); -attributes.add(new AuthUserAttribute(AuthUserAttributeKey.email(), "my@email.com")); +attributes.add(new AuthUserAttribute(AuthUserAttributeKey.email(), "hello@example.com")); Amplify.Auth.signUp( "username", diff --git a/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/switching-authentication-flows/index.mdx b/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/switching-authentication-flows/index.mdx index 92af8979bcb..ef4f97e0377 100644 --- a/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/switching-authentication-flows/index.mdx +++ b/src/pages/[platform]/build-a-backend/auth/connect-your-frontend/switching-authentication-flows/index.mdx @@ -299,7 +299,7 @@ Runtime configuration will take precedence and will override any auth flow type -> For more information about authentication flows, please visit [Amazon Cognito developer documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html#amazon-cognito-user-pools-custom-authentication-flow) +For more information about authentication flows, please visit [Amazon Cognito developer documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html#amazon-cognito-user-pools-custom-authentication-flow) ## USER_AUTH (Choice-based authentication) flow