Back

i can't get user informations

  • 0
  • Flutter
mo7amedtech
5 May, 2023, 21:26

After i create email session success and give 201 status code, when try get Account SDK to get user informations Give me general unauthorized !!

TL;DR
User is having trouble getting user information from an API. Possible solution: Use the SDK provided and make sure to use the create email session function before getting user information.
Drake
5 May, 2023, 21:47

Why aren't you using the SDK's create email session function?

Drake
5 May, 2023, 21:48

The Client instance is unauthenticated

mo7amedtech
5 May, 2023, 21:48

It's work when i use SDK's but why api not working ?

Drake
5 May, 2023, 21:49

because the session isn't added into the Client instance

mo7amedtech
5 May, 2023, 21:49

How can i add it sir ?

Drake
5 May, 2023, 21:49

use the SDK

mo7amedtech
5 May, 2023, 21:49

Ok thank you ❀️

Drake
5 May, 2023, 21:53

or you can manually manage the cookie. I don't recommend it because it would be a lot more complicated.

mo7amedtech
5 May, 2023, 21:54

SDK's Very good πŸ˜‚πŸ˜‚

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