Join Discord
Powered by
I want to implement my own email verification setu...
# support-questions-legacy
m
MrK
03/20/2023, 3:04 PM
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
rp_st
03/20/2023, 3:24 PM
hey
@MrK
rp_st
03/20/2023, 3:26 PM
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.
rp_st
03/20/2023, 3:26 PM
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
MrK
03/20/2023, 3:31 PM
Awesome thanks. I actually just figured it out moments ago as well.
3
Views
Previous
Next