Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-burel authored Nov 29, 2021
1 parent 800619f commit d1512c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ In the long run, the goal is to transition the Meteor backend to Next as well, u
- TODO: in Next, configure Passport to authenticate users using the existing Mongo database from Meteor.
Vulcan Next now provides authentication.
To update password:
- In Vulcan Meteor, hashed password lives in `services.password.bcrypt`
- You need to split this value like this: 22 characters after the 3rd $ is the `salt`. The rest is the `hash`. You can ignore the beginning.
Example: `$2b$10$abcdefghijklmnopqrstuvWXYZ123456789` => `salt` is `abcdefghijklmnopqrstuv` and `hash` is `WXYZ12345678`
- Store the `hash` in `hash` and `salt` in `salt` in the user document.
- In Vulcan Meteor, hashed password lives in `services.password.bcrypt`
- You need to split this value like this: 22 characters after the 3rd $ is the `salt`. The rest is the `hash`. You can ignore the beginning.
Example: `$2b$10$abcdefghijklmnopqrstuvWXYZ123456789` => `salt` is `abcdefghijklmnopqrstuv` and `hash` is `WXYZ12345678`
- Store the `hash` in `hash` and `salt` in `salt` in the user document.


- You can use both Next's GraphQL API and Meteor's GraphQL API using the [Connect to multiple graphql API in the frontend pattern described here](https://github.com/VulcanJS/vulcan-next/blob/demo/with-meteor-backend/src/content/docs/recipes.md)
Expand Down

0 comments on commit d1512c5

Please sign in to comment.