© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3w ago•
1 reply
patryk

SignUp automatically signs in the user

🟢SSRself-hosted
I'm using
import { createServerClient } from "@supabase/ssr";
import { createServerClient } from "@supabase/ssr";

to create supabase sdk js instance inside of a NextJS route. Then I'm creating user account like this:
const { data: { user }, error } = await supabase.auth.signUp({
        email: data.email,
        password: data.password,
        options: {
            data: {
                first_name: data.firstName,
                last_name: data.lastName,
                company_name: data.companyName,
            },
            emailRedirectTo: `https://${process.env.NEXT_PUBLIC_SITE_URL}`,
        },
    });
const { data: { user }, error } = await supabase.auth.signUp({
        email: data.email,
        password: data.password,
        options: {
            data: {
                first_name: data.firstName,
                last_name: data.lastName,
                company_name: data.companyName,
            },
            emailRedirectTo: `https://${process.env.NEXT_PUBLIC_SITE_URL}`,
        },
    });


and when this POST request ends, the newly created user is automatically logged in. I have enable_confirmations = true in config.toml where [auth.email], but the issue persists.
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
Automatically add user email to a table on user signup.
SupabaseSSupabase / help-and-questions
4y ago
creating a new user in signup function
SupabaseSSupabase / help-and-questions
4y ago
Google signs in automatically on android, even when signed out?
SupabaseSSupabase / help-and-questions
6mo ago