Back

user login help ?

  • 0
  • Flutter
gerges
25 Jul, 2023, 13:54

response for accounts created from the admin console always 401 Invalid_user_credentials but accounts created from my app success with login .. by the way i am using self-hosted appwrite

TL;DR
TL;DR: The user is having trouble with user logins in their Flutter app using the Appwrite admin console. They are receiving a 401 error for accounts created from the admin console, but accounts created from the app are successful. They are using the latest version 1.3.7 of Appwrite. The suggested solution is to log out, clear domain data, and try again. If the issue persists, they can try creating and sharing a dummy user to see if it resolves the problem.
Binyamin
25 Jul, 2023, 13:55

Mmm, So you can't create user in the console? What version btw? of Appwrite?

gerges
25 Jul, 2023, 13:56

latest version 1.3.7

gerges
25 Jul, 2023, 13:59

thank you for answering me. but the problem I am getting is when I try to creatEmailSession from my app with users previously created by admin console .. response invalid_user_credentials and i am sure from user name and password ..

Binyamin
25 Jul, 2023, 14:07

👍 Let me check something

Binyamin
25 Jul, 2023, 14:10

What is the exact error you're getting?

gerges
25 Jul, 2023, 14:47

401 invalid user credentials check email or password

gerges
25 Jul, 2023, 14:48

this happens too if i try update password from admin console

Binyamin
25 Jul, 2023, 14:48

Is this a fresh install Or you've upgrade to version 1.3.7?

Binyamin
25 Jul, 2023, 14:48

This is the exact error

TypeScript
401 invalid user credentials  check email or password
```?
gerges
25 Jul, 2023, 14:48

fresh install

gerges
25 Jul, 2023, 14:49

yes this exact error

Binyamin
25 Jul, 2023, 14:51

Can you share the preview results after changing the password

Binyamin
25 Jul, 2023, 14:51
Binyamin
25 Jul, 2023, 14:51

If it's sensitive, then can you try create and share a dummy user

Binyamin
25 Jul, 2023, 14:52

While there check that the payload is indeed what you've expected

gerges
25 Jul, 2023, 14:58

response became 401

Binyamin
25 Jul, 2023, 14:59

Maybe something wrong with the session in the console side. Can you log-out + clear domain data and try again?

gerges
25 Jul, 2023, 15:00

working on flutter

gerges
25 Jul, 2023, 15:00

i am working in flutter

Binyamin
25 Jul, 2023, 15:00

These payloads are in the console

Binyamin
25 Jul, 2023, 15:00

I'm talking about the admin console

Binyamin
25 Jul, 2023, 15:01

Where you're updating the password

gerges
25 Jul, 2023, 15:01

yea right

gerges
25 Jul, 2023, 15:02

i will try

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more