From 4cc95fe0b66817af8eb5c9d2aff3d3a91a82d9fb Mon Sep 17 00:00:00 2001 From: Peter Lafreniere Date: Mon, 16 Jun 2025 11:18:55 -0400 Subject: [PATCH] fix: correct typo of 'email' --- src/operations/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/login.ts b/src/operations/login.ts index 191e2af..609d35d 100644 --- a/src/operations/login.ts +++ b/src/operations/login.ts @@ -86,7 +86,7 @@ export const loginWithOTP = async ({ type, collection, otp, req, value }: Args) req.user = user const { exp, token } = await jwtSign({ - fieldsToSign: getFieldsToSign({ collectionConfig, email: user.emai || '', user }), + fieldsToSign: getFieldsToSign({ collectionConfig, email: user.email || '', user }), secret: payload.secret, tokenExpiration: collectionConfig.auth.tokenExpiration, })