
I have build a node js server with some protected routes by using a middleware. The protected route is serving an index.html file / Javascript files ..
I need to grant access to those private routes to the logged in user only (email and password). I manage to do that by passing at the url of the protected route - the user's token and his user id - so I check it in the middleware - and it's working. Problem is - the token valid only for 15 minutes.
Is my approach is valid? and what should I do to refresh the token? Thanks
Recommended threads
- Is it possible to initialize an Appwrite...
If I provide a project repository to someone, and within that repo there is an `appwrite.json`, is it possible to initialize the project in Appwrite from scratc...
- Realtime listener does not get update wh...
listener (flutter) ``` realtime .subscribe(['databases.6882943XXXXX.tables.public.rows.main']) .stream .listen((message) { print(message); });``` ...
- Appwrite Cloud - Rows get missing on Saf...
I have opened the appwrite console on my Safari. When I go to one of my project's database and then table, there are like 600+ rows and they often fail fetching...
