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
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...