Back

401 unauthorised

  • 0
  • Web
Jaggadaku005
14 Mar, 2024, 03:51

401 unauthorised How to resolve it

TL;DR
Developers are experiencing a 401 unauthorized error. Helpful link provided for Auth documentation: <https://appwrite.io/docs/products/auth>
Steven
14 Mar, 2024, 05:24

What is the response body?

Jaggadaku005
14 Mar, 2024, 07:54
Steven
14 Mar, 2024, 08:23

This means you're not logged in. Did you create a session?

Jaggadaku005
14 Mar, 2024, 08:53

But i access all in collection

Steven
14 Mar, 2024, 08:54

What are the permissions settings for your collection?

Jaggadaku005
14 Mar, 2024, 08:55

All

Jaggadaku005
14 Mar, 2024, 08:55

Means not only users

Steven
14 Mar, 2024, 08:55

Well then that explains why you can access all documents....

Jaggadaku005
14 Mar, 2024, 08:56

So how i resolve this query?

Steven
14 Mar, 2024, 08:56

What do you mean?

Jaggadaku005
14 Mar, 2024, 08:57

How this can be resolved?

Jaggadaku005
14 Mar, 2024, 08:57

Guidelines or steps to follow?

Steven
14 Mar, 2024, 08:57

It's expected so there's nothing to resolve 🧐

Steven
14 Mar, 2024, 08:58

You're calling account.get() but you haven't created a session...so it's expected

Jaggadaku005
14 Mar, 2024, 08:59

So how i create account first 😂

Jaggadaku005
14 Mar, 2024, 08:59

?

Jaggadaku005
14 Mar, 2024, 09:00

How to create session?

Steven
14 Mar, 2024, 09:10
Jaggadaku005
14 Mar, 2024, 11:06

Ok thanks

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