I ran ``` const {} = await supabase.auth.signUp(...
# javascript
n
I ran
Copy code
const {} = await supabase.auth.signUp({
  email: "my-email@gmail.com",
  password: "ar8Kevz!Hm4!b9qs9qo*Q!a",
});

const { user, session, error } = await supabase.auth.signIn({
  email: "my-email@gmail.com",
  password: 'ar8Kevz!Hm4!b9qs9qo*Q!a',
})
and my user is null. how can that be? I don't get error from signUp maybe I don't get something about how supabase deals with users?
Copy code
{
  id: '1c0bf776-4bd8-4482-bf7f-ada7aa866dd6',
  aud: 'authenticated',
  role: 'authenticated',
I get this if log the
user
from
signUp
call
e
Try checking out the docs: https://supabase.com/docs/reference/javascript/auth-signup#notes I think it may be the case for you > By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on app.supabase.io
n
still null 😦
If "Email Confirmations" is turned on, a user is returned
I don't get user in either case
with or without email confirm
or wait I think I need to delete the user first to apply it
was trying to maybe getUser it to see if it exists https://supabase.com/docs/reference/javascript/auth-api-getuser
but I dont know how to get it
something really strange is happening with the client as it now returns null for when I do
Copy code
const {user} = await supabase.auth.signUp({
  email: "email-test@gmail.com",
  password: "ar8Ke8thvz!Hm4!b9qs9qo*Q!a",
});
console.log(user)
like here is screenshot, to right is output of code on left, I was getting user object but now its null
I guess because I switched the confirm email button but it makes no sense how thats related
e
Probably it is because you are trying to sign up user with the same email multiple times
You still can find a lot of information that may be really helpful with a lot of your questions in our docs: for example here https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts And in other articles in Auth section