Need help with email confirmation auth
Hello, I have a question regarding the "Confirm Email" option in Supabase. I understand that by having it on, user can not log in without the magic link sent to his email. I don't like this workflow since someone could be making the profile on his PC, and receives the link on his phone where they confirm the email, but then they will still be logged out of the main tab since there is no session there.
One of the solutions that came to my mind was disabling the Confirm Email setting and just sending them the Confirmation Email manually after pressing sign up, and using backend middleware to reroute every non confirmed user to the confirmation page, but by disabling the Confirm Email it makes the email_confirmed_at defaulted to NOW(), just as if they confirmed their email as soon as they signed up, meaning I can't use my method.
Basically, my goal is for the session to be created after signing up but while retaining the email confirmation workflow.
Any ideas are welcome:)
One of the solutions that came to my mind was disabling the Confirm Email setting and just sending them the Confirmation Email manually after pressing sign up, and using backend middleware to reroute every non confirmed user to the confirmation page, but by disabling the Confirm Email it makes the email_confirmed_at defaulted to NOW(), just as if they confirmed their email as soon as they signed up, meaning I can't use my method.
Basically, my goal is for the session to be created after signing up but while retaining the email confirmation workflow.
Any ideas are welcome:)