Bug: AppwriteException: User (role: guests) missing scope (account) #202
Sanchitbajaj02
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, many contributors have faced the below issue:
The issue is because every time you visit on the homepage, a
check login user
API was calling. When I look at it, I thought do we actually need to check everytime whether the user is logged in or not because we are checking this fromaccountId
cookie and we don't need to check that but we need the user details. So, to fix this issue, I added a type-guard that only checks for the user when accountId cookie is present.Beta Was this translation helpful? Give feedback.
All reactions