Hi, do I have this good?
https://pastebin.com/MPb1c0r2
When user click in button (email verification), open this page (Nextjs). At first, the page is blank (before useEffect so user may not see it.). useEffect run consumeVerificationCode to check if the verification code is expired or invalid and if the verification code is expired or invalid user should see screen version with button (status: "error"). The button send email for new code. But if code is ok, user'll get page version for status: "success".
r
rp_st
02/27/2023, 11:30 AM
makes sense.
w
weboux
02/27/2023, 11:33 AM
Do you mean that I did this in good way?
r
rp_st
02/27/2023, 11:33 AM
yea
w
weboux
02/27/2023, 11:41 AM
And now when the user clicks on this button in the email verification email and the code will be ok, the email will be as verified?
r
rp_st
02/27/2023, 11:42 AM
it should
w
weboux
02/27/2023, 11:44 AM
so I needn't to do anything more for email verification? I make sure I haven't missed something.
r
rp_st
02/27/2023, 11:44 AM
I’m not sure what you have done. Pls figure this on your own. Our docs are clear enough
w
weboux
02/27/2023, 11:46 AM
Ok. I only meant after click in button in email message :)
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).