I want to implement my own email verification setu...
# support-questions-legacy
m
I want to implement my own email verification setup using a 6 digit code as part of the onboarding flow. I saw this in the documentation but it hasn't been updated in 4 months. Is it possible to manually mark a user as email verified? https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/email-verification/changing-email-verification-status
r
hey @MrK
it is possible - call the generateEmailVerificationCode function from our SDK and then feed that into the verifyEmail function. Both are exposed via the email verification recipe.
We even have a demo app showing how you can customise supertokens to have otp based email verification: https://github.com/supertokens/supertokens-auth-react/tree/master/examples/with-emailverification-with-otp
m
Awesome thanks. I actually just figured it out moments ago as well.
3 Views