mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
Merge pull request #356 from ykdojo/master
Slack clone: make the confirmation flow clearer
This commit is contained in:
1 file changed
+3
@@ -15,6 +15,9 @@ const Home = () => {
|
||||
type === 'LOGIN'
|
||||
? await supabase.auth.login(username, password)
|
||||
: await supabase.auth.signup(username, password)
|
||||
// If the user doesn't exist here and an error hasn't been raised yet,
|
||||
// that must mean that a confirmation email has been sent.
|
||||
if (!user) alert('Signup successful, confirmation mail should be sent soon!')
|
||||
if (!!user) signIn(user.id, user.email)
|
||||
} catch (error) {
|
||||
console.log('error', error)
|
||||
|
||||
Reference in new issue
Block a user