Skip to content

Commit

Permalink
fix: Typos in JS Auth migration & getting started guides (#7371)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblanc authored Apr 30, 2024
1 parent e0933d3 commit 38e2ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fragments/lib/troubleshooting/common/upgrading.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 38e2ae0

Please sign in to comment.