anon_123
04/11/2022, 6:26 PMsupabase.auth.user()
checkNeedle
04/11/2022, 6:26 PM/title
command!
We have solved your problem?
Click the button below to archive it.garyaustin
04/11/2022, 7:05 PMNeedle
04/11/2022, 7:05 PManon_123
04/11/2022, 7:53 PManon_123
04/11/2022, 7:57 PMawait supabase.auth.signUp({ email, password });
with the email / password of an already existing user I also do not get an error. It gives back a user. But that user does not exist inside my db.
Why would I not get back an error in that case? Is it to protect the emails by not giving away if the signUp
action has failed or not? Or is there another reason?garyaustin
04/11/2022, 7:59 PManon_123
04/11/2022, 8:01 PMsupabase.auth.user()
does not even do a roundtrip to the server?garyaustin
04/11/2022, 8:16 PM/**
* Inside a browser context, `user()` will return the user data, if there is a logged in user.
*
* For server-side management, you can get a user through `auth.api.getUserByCookie()`
*/
user(): User | null {
return this.currentUser
}
/**
* Returns the session data, if there is an active session.
*/
session(): Session | null {
return this.currentSession
}
anon_123
04/11/2022, 8:30 PM