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".