TELYA
04/13/2022, 11:56 AMjavascript
EmailPassword.init({
emailVerificationFeature: {
mode: "REQUIRED"
}
})
I noticed this every time when i signup successfully i received two email verification email instead of one.
I started to digging why this is happened and i added the createAndSendCustomEmail option to my backend setup
typescript
EmailPasswordNode.init({
emailVerificationFeature: {
createAndSendCustomEmail: async (user, emailVerificationURLWithToken) => {
console.log(user, emailVerificationURLWithToken);
}
}
})
The callback fired 2 times after every successful signup. I assume the root of the problem is with my frontend setup because it is the only one who is calling my backend. Do you have guys any idea what i did wrong ? 😅nkshah2
04/13/2022, 11:59 AMTELYA
04/13/2022, 12:02 PMnkshah2
04/13/2022, 1:12 PMTELYA
04/13/2022, 1:18 PMnkshah2
04/13/2022, 1:23 PMTELYA
04/13/2022, 1:24 PMnkshah2
04/13/2022, 1:26 PMsupertokens-auth-react
?TELYA
04/13/2022, 1:27 PMnkshah2
04/13/2022, 1:31 PMTELYA
04/13/2022, 1:31 PMnkshah2
04/13/2022, 1:32 PMreactStrictMode: true
and in development mode?TELYA
04/13/2022, 2:31 PMnkshah2
04/13/2022, 2:44 PMTELYA
04/13/2022, 2:59 PMnkshah2
04/13/2022, 4:12 PM