ExpressJS Backend receiving API requests with bearer tokens
I am trying to create a backend API using expressJS that is authenticated via Kinde. I have tried both the express quick start and nodejs quick start. The nodejs quick start seems to provide more of what I think I need, partially because the expressjs quick start hangs and fails to server any pages when adding to an existing product.
Where in the middleware for isAuthenticated should it be checking for the bearer token and validating it? I can't seem to find an example of that anywhere.
For testing, why doesn't expressJS allow re-authentication with the cookie saved after login? When the express server restarts I have to login again despite having a redis session store with express-ession
FrontEnd: sveltekit using SDK from Kinde
Backend: expressjs using nodejs SDK
Where in the middleware for isAuthenticated should it be checking for the bearer token and validating it? I can't seem to find an example of that anywhere.
For testing, why doesn't expressJS allow re-authentication with the cookie saved after login? When the express server restarts I have to login again despite having a redis session store with express-ession
FrontEnd: sveltekit using SDK from Kinde
Backend: expressjs using nodejs SDK