https://supabase.com/ logo
#help
Title
# help
d

Dembe

06/16/2022, 7:42 AM
When i trying to login with
Copy code
const { user, session, error } = await supabaseAuth.auth.signIn({
      email: email,
      password: password,
    });
I can't get to my session or user, i get null back even if i have signup before. I have no idea why is still am on Auth.js file and not on index.js which I should be when i log in
n

Needle

06/16/2022, 7:42 AM
Hello @Dembe! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
m

Mikey007

06/16/2022, 8:21 AM
ive been trying to login users, but getting
ive been trying to login users, but getting 500 error the last few hours - anyone with the same problem atm? const { user, session, error } = await supabase.auth.signUp({ email: 'example23@email.com', password: 'example-password', }); { "code": 500, "msg": "Database error saving new user", "error_id": "9e5df685-77ea-49a7-a96b-a7d864e6719a" }
g

garyaustin

06/16/2022, 2:39 PM
@Dembe I'm thinking someone accidentally responded to this thread. Are you getting a network request from the call? When you say you expect to be on another page after login, what is supposed to get you to that page?
d

Dembe

06/16/2022, 2:42 PM
I Thought that when I log in I check session and if that is true I show a form component instead Login page
But it doesn’t work I need to click on link in email, I just want to pass email and password and then login
g

garyaustin

06/16/2022, 2:55 PM
Are you saying when you provide an email AND password to signIn it is sending you a verification email and link? If so make sure your password is not null or empty.