productdevbook
ts EmailVerification.init({ mode: env.auth.requireEmailVerification ? 'REQUIRED' : 'OPTIONAL', emailDelivery: { override: originalImplementation => ({ ...originalImplementation, sendEmail: async (input) => { console.log('Sending email', input) console.log('Sending email', input) if (input.type === 'EMAIL_VERIFICATION') { await emailsService.sendEmailVerificationEmail.mutate({ user: { id: input.user.id, email: input.user.email, }, emailVerifyLink: input.emailVerifyLink, }) return Promise.resolve() } }, }), }, }),
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).