You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am struggling to see how can I use backend middleware using the connect server. For example, to automatically parse things like session cookies. At the moment I am doing it in every handler like this:
Hey! We don't yet have server side interceptors it is tracked in #527. But for the use case that you highlighted you can parse the cookie at the server(fastify/express) layer and add the parsed information to the context. This was added in v1.1.0. There's a similar example in the release notes
I am struggling to see how can I use backend middleware using the connect server. For example, to automatically parse things like session cookies. At the moment I am doing it in every handler like this:
But surely there must be a better way?
(I cannot use connect-web because those cookies are httpOnly)
The text was updated successfully, but these errors were encountered: