# Does Supabase sign up not automatically log the user in?

**URL:** <https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231>\
**Category:** Ask us anything\
**Tags:** supabase\
**Created:** [November 6, 2023, 3:17am UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231 "2023-11-06T03:17:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![marketplacebuilder](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@marketplacebuilder](https://community.weweb.io/u/marketplacebuilder)\
**Post date:** [November 6, 2023, 3:17am UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/1 "2023-11-06T03:17:30Z")

</div>

I have a sign up flow where

1. the user inputs their email and password → creates a user on Supabase → redirects to a separate form containing more profile information.
2. the separate form with more profile information (full name, location, interests, etc.) are then written to a separate Supabase profiles table that references the auth users uuid as primary id.

I have no problem when I test the above by manually logging in after I create an account, then go to the more profile information form and fill it out to update the Supabase profile record.

However, I want the above to be a smooth two-step process at the beginning of account creation. When I create a new account then fill out the more profile info form, it seems as though I am not technically logged in, failing to write to the Supabase profiles table.

Is there any way to ensure with account creation on the Supabase sign up form, I am automatically logged in? Or am I misunderstanding completely? Thank you!

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [November 6, 2023, 7:38am UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/2 "2023-11-06T07:38:14Z")

</div>

Might be two things,

1. Users haven’t yet confirmed their account
2. There is a tutorial somewhere, where @Joyce shows how to get the session. It basically consists in Signup → Redirect to a blank page → Redirect to your page this way, the app gets the session loaded.

I’d need more info to understand the issue. Currently, doing Signups in Supabase and WeWeb is a little tricky anyway, hopefully we get an overhaul with the new update.

---

<div class="post-metadata">

**Author:** ![marketplacebuilder](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@marketplacebuilder](https://community.weweb.io/u/marketplacebuilder)\
**Post date:** [November 7, 2023, 1:53am UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/3 "2023-11-07T01:53:43Z")

</div>

Ah yes users haven’t confirmed their account yet in this scenario. I guess no way to bypass that? And having trouble finding the video by @Joyce unfortunately; though I have set it up currently like the below:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/62b3dcaddbcca0c4bbaeaebdc7946ad1c901c7c7.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [November 7, 2023, 11:01pm UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/4 "2023-11-07T23:01:21Z")

</div>

> [@marketplacebuilder](#):
>
> And having trouble finding the video by @Joyce unfortunately

Hello 👋

Here’s a link to [the “Build with Supabase” playlist](https://www.youtube.com/playlist?list=PLvTqMLG5UNf4ny-AhRX_hIMgUUyrQ0QFd) on our YouTube channel.

And the link to the [user auth intro video](https://youtu.be/pJgwMv-1dPs).

Does that help?

---

<div class="post-metadata">

**Author:** ![justifi](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/justifi/32/2846_2.png) [@justifi](https://community.weweb.io/u/justifi)\
**Post date:** [November 10, 2023, 3:36pm UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/5 "2023-11-10T15:36:45Z")

</div>

You can bypass it if you turn off the “Confirm email” setting in `Auth` \> `Providers` \> `Email`

 ![Authentication Supabase 2023-11-10 at 10.35.09 AM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/69534ef5401781a2e9f05aae502519261e5760dd.png)

---

<div class="post-metadata">

**Author:** ![marketplacebuilder](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@marketplacebuilder](https://community.weweb.io/u/marketplacebuilder)\
**Post date:** [November 14, 2023, 12:40am UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/6 "2023-11-14T00:40:14Z")

</div>

I think this works! Thank you.

---

<div class="post-metadata">

**Author:** ![lmac](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@lmac](https://community.weweb.io/u/lmac)\
**Post date:** [January 17, 2024, 2:53am UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/7 "2024-01-17T02:53:39Z")

</div>

I am having a similar issue. I am trying to replicate the signup redirect from the User Authentication with Supabase tutorial on YouTube with @Joyce. I am using the Signup page with new credentials, a new user is created in Supabase, but the page does not redirect to the page I assigned. And WeWeb does not change authenticated status from false to true. I am authenticating with Supabase and have not changed the Supabase Site URL from the default localhost:3000. Any help you can provide would be greatly appreciated. Thanks!

 ![signup_workflow](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/e7b24b2737dbcfc15c0b20261b0a542d9774726b.jpeg)

---

<div class="post-metadata">

**Author:** ![lmac](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@lmac](https://community.weweb.io/u/lmac)\
**Post date:** [January 18, 2024, 11:45pm UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/8 "2024-01-18T23:45:55Z")

</div>

I figured it out.

---

<div class="post-metadata">

**Author:** ![loukas](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@loukas](https://community.weweb.io/u/loukas)\
**Post date:** [June 29, 2024, 8:14pm UTC](https://community.weweb.io/t/does-supabase-sign-up-not-automatically-log-the-user-in/5231/9 "2024-06-29T20:14:34Z")

</div>

Hi @lmac ! I think I am in a similar situation and would appreciate your solution if it applies:

Supabase auth with Google, user appears in supabase users & a session is created when he logs in with google email/password on the Consent Screen from the weweb botton that uses “Supabase - Sign in with Provider” workflow

BUT does not appear as authorised in weweb variable (Authorised: False) and the page redirects to: [http://localhost:3000/#access\_token=eyJhb](http://localhost:3000/#access_token=eyJhb)…

which is a non accessible screen per the screenshot. Can you please help me ?

**EDIT** : Got it! It’s the “Site URL” and “Redirect URLs” in Supabase: Authentication - URL Configuration. Paste : [https://editor.weweb.io/](https://editor.weweb.io/)…  
{the URL of the page you want to redirect as it appears in the weweb editor}

 ![Screenshot 2024-06-29 at 23.07.59](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/7b8b8c9f1941796e37036a3c21d1540a6d0f7f75.jpeg)
