Verification email error message

Problem statement

I clicked on the link in the verification email while I was already verified.
I expected to see “This account is already verified.” which I set in “alreadyVerifiedDescription”.
But I got “Your email address could not be verified.” which I set in “unknownErrorDescription”.

Steps to reproduce

1 I registered a new user on the dashboard.
2. I received a verification email.
3. I clicked the link in the verification email.
4. I was verified.
5. I clicked the link in the verification email again.

Solution

This behavior is expected to occur when a verification link has been clicked twice.

This is because Verification Links can only be used once, and once they are used, they will expire. Once expired, they always return the error that triggers the ‘unknownErrorDescription’ message.

The ‘alreadyVerifiedDescription’ error description will only be triggered if you send a brand new Verification Email to the customer after they have already verified their email and then they click on the link for the first time.