Adi
03/03/2022, 3:49 PMScott P
03/03/2022, 4:11 PMsignOut()
immediately afterwards. I'm not aware of any options you can pass to the signup function which prevents auto-signin, but I'd be interested in hearing how other people handle it.
Alternatively, requiring email address confirmation prevents the a session from being created when signUp
completesthewebbeckons
03/03/2022, 4:13 PMthewebbeckons
03/03/2022, 4:14 PMAdi
03/03/2022, 5:03 PMAdi
03/03/2022, 5:07 PMAdi
03/03/2022, 5:10 PMScott P
03/03/2022, 5:11 PMAdi
03/03/2022, 5:17 PMScott P
03/03/2022, 5:20 PMsignUp
(https://supabase.com/docs/reference/javascript/auth-signup#notes):
If "Email Confirmations" is turned on, a user is returned but session will be null
If "Email Confirmations" is turned off, both a user and a session will be returned
In terms of UX, if I sign up for a website or app and they don't want me to verify my email, I'd expect to be logged in as my intention is usually to access the service immediately. Even if I'm not intending to use the service immediately, there's no harm in me being logged in but closing the tab and then returning later when I'm ready to access the service.Scott P
03/03/2022, 5:21 PMAdi
03/03/2022, 5:23 PMScott P
03/03/2022, 5:24 PMAdi
03/03/2022, 5:26 PM