https://supertokens.com/ logo
Title
u

ใƒ”ใƒงใƒˆใƒซ๐Ÿบ

02/03/2023, 6:21 PM
Hi, I'm trying check values when user sign up so I override emailPasswordSignUp, but maybe this is ignored. My code: return { ...originalImplementation, emailPasswordSignUp: async function (input) { const existingUsers = await ThirdPartyEmailPassword.getUsersByEmail(input.email); if (existingUsers.length === 0) { const inputWithGoodValues: SuperTokensUsersPipe = { email: input.email, password: input.password, }; return originalImplementation.emailPasswordSignUp({ email: inputWithGoodValues.email, password: inputWithGoodValues.password, userContext: input.userContext, }); } return { status: 'EMAIL_ALREADY_EXISTS_ERROR', };