Skip to content

Cannot create / login first new user after project is up and running #23

@LymanBE

Description

@LymanBE

Describe the bug
I'm seeing "Cannot destructure property 'user' of 'data.session' as it is null." pop up in the top right any time I try to create a user.

I can see the users being created in the auth.users schema of the test supabase project I've created for this. I also receive an email which I can try to confirm. However, it continues to fire this error every time I attempt to register a user (even if it's one I can see exists in the auth.users table already from prior attempts). Even when the email is confirmed (and I can see that the auth.users table reflects that), it still says to retry the login/password (although, it's unclear to me if the issue then is that the same user email has been attempted and is in the auth.users table multiple times).

To Reproduce
Steps to reproduce the behavior:

  1. Follow the README.md instructions exactly.
  2. Create a new Supabase project that is empty.
  3. Use the provided Supabase credentials.
  4. Run "npm run dev"
  5. Attempt to register a user.

Expected behavior
Login success or a prompt to confirm email.

Screenshots
Probably not needed.

Desktop (please complete the following information):

  • OS: MacOS w/ ARM64
  • Browser: Chrome + Safari both have this issue
  • Version: Latest of each as of the current date.

Additional context
The instructions are a little bit unclear as to the role that that Prisma db being created locally is playing as opposed to the Supabase DB. I was guessing one is dev and one is prod. However, I did try configuring the database url to be either the local prisma database or the supabase dabase url and the outcome is the same regardless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions