
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
- Need help with clerk auth
Im having issue with auth
- Account Creation only with OAuth provide...
Hey, is it possible to create account only with a oauth provider? Like that you can login and create your account with only Discord for example. I didn't really...
- API Access Screenshot
For the sites api you have a screenshot light and screenshot dark which represent v1/storage/buckets/screenshots/files/687273897c6df66a9241/view I can access t...
