diff --git a/src/fragments/lib/troubleshooting/common/upgrading.mdx b/src/fragments/lib/troubleshooting/common/upgrading.mdx index 4fd647261db..8ccd78a5683 100644 --- a/src/fragments/lib/troubleshooting/common/upgrading.mdx +++ b/src/fragments/lib/troubleshooting/common/upgrading.mdx @@ -272,7 +272,7 @@ As of v6 of Amplify, you will now import the functional API’s directly from th ```ts import { signIn, signOut } from 'aws-amplify/auth'; - async function signIn({ username, password }) { + async function handleSignIn({ username, password }) { try { const { isSignedIn, nextStep } = await signIn({ username, password }); } catch (error) { diff --git a/src/pages/[platform]/build-a-backend/auth/set-up-auth/index.mdx b/src/pages/[platform]/build-a-backend/auth/set-up-auth/index.mdx index 4364e72472e..da5169a0b4d 100644 --- a/src/pages/[platform]/build-a-backend/auth/set-up-auth/index.mdx +++ b/src/pages/[platform]/build-a-backend/auth/set-up-auth/index.mdx @@ -270,7 +270,7 @@ Amplify.configure({ // REQUIRED only for Federated Authentication - Amazon Cognito Identity Pool ID identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab', // OPTIONAL - Set to true to use your identity pool's unauthenticated role when user is not logged in - allowGuestAccess: true + allowGuestAccess: true, // OPTIONAL - This is used when autoSignIn is enabled for Auth.signUp // 'code' is used for Auth.confirmSignUp, 'link' is used for email link verification signUpVerificationMethod: 'code', // 'code' | 'link'