So I'm trying to protect some routes so that the user is redirected back to the login screen should they not have an active session.
However, I'm stuck in a loop where by a user can log in but if they refresh the page they are sent back to the login screen.
I have created a composable for the authentication but it fails to get the user session on refresh saying i'm not permitted to use account.get() (which i understand that a user has to be logged in to use) but the user is logged in and its throwing the error.
Recommended threads
- Bug Report: type generation for enum of ...
### 👟 Reproduction steps in the enum element value, instead of English, use another language (Khmer), in my case Khmer text. ``` export enum ProvinceType { ...
- Want to integrate my university server t...
Hello <@870607367597850624> i want to use the appwrite backend services for my university website,I want to know that is it possilbe that i could use the backen...
- Emails not coming
I'm building a simple web app that registers users with an email and password. The user is created successfully in my (auth) page, but the verification email is...