workos / authkit-remix

Authentication and session helpers for using WorkOS & AuthKit with Remix
MIT License
21 stars 6 forks source link

Adds the sealed session to the auth data #21

Closed PaulAsjes closed 1 month ago

PaulAsjes commented 1 month ago

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.