Email Verification Page

Hello. I am working on a verify-email route and I don't want everyone to have access to it. I only want to give access to this route, to people who have created an account, but haven't verified it yet. But if you haven't verified yet, then your session.data is null. How could I check the email verification status?
Was this page helpful?