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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Streamlit UI and local DB
I want to use Appwrite for automation, like run watchdog service every morning 3 am. Anyone got suggestions, already explored github and documentation no luck. ...