From 9ee2881136c2c4327f554b47acb315bda061f3b0 Mon Sep 17 00:00:00 2001 From: Anton Moiseev Date: Sun, 15 Sep 2024 14:19:58 +0400 Subject: [PATCH] Return crypto-js since it's used for random number generation --- docs/docs/how-to/dbauth-passwordless.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/how-to/dbauth-passwordless.md b/docs/docs/how-to/dbauth-passwordless.md index f8e092e15e8f..e4c230c3d7b4 100644 --- a/docs/docs/how-to/dbauth-passwordless.md +++ b/docs/docs/how-to/dbauth-passwordless.md @@ -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 {