Back

401 (Unauthorized) User (role: guests) missing scope (account) after logout

  • 1
  • Databases
  • Auth
  • Web
Aman
28 Sep, 2024, 16:07

This error goes away after login but appears again after logout

TL;DR
Developers are receiving a 401 (Unauthorized) error regarding missing scope (account) after logout. This error is normal when the user is not logged in, and it can be safely ignored as it does not affect app behavior. The error disappears after logging in and reappears after logout.
Aman
28 Sep, 2024, 16:11

@D5

D5
28 Sep, 2024, 16:13

Please, avoid pinging random people 😅

D5
28 Sep, 2024, 16:13

You get this after running account.get() after logout, right?

D5
28 Sep, 2024, 16:14

If so, that's expected, because it means the user is not logged in (there's not an active or valid session)

Aman
28 Sep, 2024, 16:16

Can't it go away

Aman
28 Sep, 2024, 16:16

???

D5
28 Sep, 2024, 16:17

What do you mean?

Aman
28 Sep, 2024, 16:17

Will this error keep showing?

D5
28 Sep, 2024, 16:18

If you mean removing the error, I think not unless you fork the SDK. But you can just ignore it as it should not affect the app behavior or similar

D5
28 Sep, 2024, 16:18

If you try to run account.get() without a session, then yes, but as mentioned it's something you can just ignore

Aman
28 Sep, 2024, 16:19

ok thankyou

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