Closed mukhtharcm closed 2 years ago
Hi @mukhtharcm. Only way I've successfully reproduced that error is intentionally passing incorrect email. Could it be possible you've done the same? If not, are you using authViaEmail() or authViaOAuth()? If possible, please provide code block
@mukhtharcm Users
and Admins
are 2 separate entities (they have their own tables, different authorization schemas, etc.), or in other words - you can use client.users.authViaEmail()
only with user accounts.
As irmhonde mentioned, the above error is most likely caused because a user account with the email address you are trying to login doesn't exist (the error is intentionally generic to prevent users/admins enumerations).
@ganigeorgiev @irmhonde Thank you guys, I misunderstood that PocketBase didn't have any separate method for signing Up.
I was trying to create a new user.
I just had a close look at docs and found that there is a separate .create
method.
I'm unable to log in to pocketbase with the users' method. But I'm able to log in with the admins' method.
When trying to login, I'm getting this error
Any Idea?