Skip to content

Commit

Permalink
Return crypto-js since it's used for random number generation
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmoiseev authored Sep 15, 2024
1 parent 313479b commit 9ee2881
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/how-to/dbauth-passwordless.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ Now that you have the file, let's add the `generateToken` function.
```javascript {21} title="/api/src/services/users/users.js"
// add this import to the top of the file
import { hashPassword } from "@redwoodjs/auth-dbauth-api"
import CryptoJS from 'crypto-js'
import { hashPassword } from '@redwoodjs/auth-dbauth-api'
// add this to the bottom of the file
export const generateLoginToken = async ({ email }) => {
try {
Expand Down

0 comments on commit 9ee2881

Please sign in to comment.