
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
- File tokens regenerate each page reload
Hello, on appwrite 1.7.4, when I create a file token via the API Tokens(appwriteAdminClient)#createFileToken I get a secret, then when I check in the console t...
- CSV Import Shows Success but Data Not Ap...
I tried importing a CSV file into my PRODUCTS collection. The dashboard shows the message “Import to PRODUCTS completed successfully,” but no data appears in th...
- [FEATURE] Better usage analytics for app...
Recently, i've gotten **73** emails from appwrite regarding excesive GBHours usage. I've almost hit the limit of 1000 and it is really hard to track down which ...
