In my actual project there are a bunch of network requests that are run in the eventHandler (csrf, login, session) when useFetch('api/login') is called via client. Where my problem sits is with the last call in this file:
sendRedirect(event, '/listing/create')
sendRedirect(event, '/listing/create')
I would expect my frontend to route to this page but it doesn't. Only after refreshing is my user in a "logged in state" I thought maybe my auth/session managment had a bug but I recreated a minimmal repo in stackblitz and the problem persist there without the auth/session managment.