Sometimes you might want to pass the sealed session to a backend to perform auth features there. Because Remix mints its sessions as JWTs, it means you can't get the sealed session directly from the browser cookie.
This cuts out the middleman and explicitly passes the sealed session in the loader data response.
Sometimes you might want to pass the sealed session to a backend to perform auth features there. Because Remix mints its sessions as JWTs, it means you can't get the sealed session directly from the browser cookie.
This cuts out the middleman and explicitly passes the sealed session in the loader data response.