Skip to content

Commit

Permalink
docs: make migration guide more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 16, 2023
1 parent 56255ee commit d2b8684
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ Some functions now require you to pass a `RecipeUserId` instead of a string user

```
// Here res refers to the result the function/api functions mentioned above.
const isNewUser = res.createdNewRecipeUser && res.user.loginMethod.length === 1;
const isNewUser = res.createdNewRecipeUser && res.user.loginMethods.length === 1;
```

- You can check if a new primary user was created by `EmailPassword.signUp`, `signUpPOST` or `createNewRecipeUser` (and their ThirdParyEmailPassword counterparts) by:
- In the emailpassword sign up API, you can check if a user signed up by:

```
const isNewUser = res.user.loginMethod.length === 1;
const isNewUser = res.user.loginMethods.length === 1;
```

#### Changing user emails
Expand Down

0 comments on commit d2b8684

Please sign in to comment.