
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
- invalid document structure
This doesn't exist, and I cannot create it. Please help, this happens if I try to edit a user's data or create a new profile on Appwrite or the app
- Internal 500 Server Error
I don't have much information but I am unable to create anything on database, Auth users are creating but not able to fetch into database
- Deleting rows in tables returns 500 on C...
Hey! I'm trying to delete some rows on my dev environment, and I’m receiving 500. I tried to update it and then delete that rows. Updates went well but delete s...
