© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
4 replies
Mr Void

signup errors

Why does the signUp not return an error message for an account that is already in use?

I tried signing up with an existing user's email and all I get it some data about the existing user instead of some error message.

I wish to know whether the email is already in use.

Assuming such is known by checking whether the returned data is null or not. Very well, but what then does "AuthError" contain? Cant seem to find a list of errors related to this.

why is this happening?

await supabase.auth.signUp({
    email: data.email,
    password: data.password,
    options:{
        data: {
            username: data.username,
            country: data.country,
            display_name: data.displayName
        }
    }
})
await supabase.auth.signUp({
    email: data.email,
    password: data.password,
    options:{
        data: {
            username: data.username,
            country: data.country,
            display_name: data.displayName
        }
    }
})


All except "user?" is showing
undefined
undefined
.
console.log("--")
console.log("cause: ", error?.cause);
console.log("message: ", error?.message);
console.log("name: ", error?.name);
console.log("stack: ", error?.stack);
console.log("status: ", error?.status);
console.log("--")
console.log("user?: ", data.user);
console.log("--")
console.log("cause: ", error?.cause);
console.log("message: ", error?.message);
console.log("name: ", error?.name);
console.log("stack: ", error?.stack);
console.log("status: ", error?.status);
console.log("--")
console.log("user?: ", data.user);
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

user signup
SupabaseSSupabase / help-and-questions
4y ago
SignUp Handling
SupabaseSSupabase / help-and-questions
13mo ago
Phone & Email SignUp
SupabaseSSupabase / help-and-questions
3y ago
SignUp with OAuth
SupabaseSSupabase / help-and-questions
3y ago