Problem with account verification

I’m running into some trouble with the verification stage of my signup flow, and hoping someone can lend a hand :pray:

After signing up, some users are verified immediately, and some need to try and verify 3-4 times before it works, if at all.

I’m using Option Sets for user roles, and changing the option sets based on whether the email is verified.

Parts of the app are locked based on a user’s user role, so having someone sign up, verify their email, and then be told to verify their email again isn’t a great experience.

I’m sure it’s a case of me missing something basic, I’d love any advice on how to fix this :crossed_fingers:

I’ve recorded a Loom describing and showing the problem, seemed easier than images:

Thank you!

Hi James! Did you check the logs or run in the app in the debug mode and test what’s showing up? I think you might find the solution there

Why do you go to login page if the user is logged out in the confirmed page? I think that page should work regardless.

And the on page load of confirmed seems to be doing a lot with two or more conditions to change the verified flag. I am sure some of these are coming later maybe? (Stripe customer ID?)

You should do some checks later and change this logic a little bit.

This topic was automatically closed after 70 days. New replies are no longer allowed.