ITEnthusiasm
04/06/2022, 3:20 PMverifySession express middleware without express?
I have a request object coming from Svelte Kit instead of Express. The request object that Svelte Kit sees still has the headers property on it. So the cookie with the necessary keys/values are present.
However, when I pass event.request to the middleware function returned from verifySession(), the event.request object doesn't seem to get modified at all. It seems the function cannot "see" event.request.headers.cookie, even though it is actually present on the object.