-
Notifications
You must be signed in to change notification settings - Fork 1
Description
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:
- Follow the README.md instructions exactly.
- Create a new Supabase project that is empty.
- Use the provided Supabase credentials.
- Run "npm run dev"
- 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.