Closed mattbf closed 1 month ago
Thanks for this! The code looks good but I'm going to hold on merging this till we figure out a solution for https://github.com/workos/authkit-nextjs/issues/24 and https://github.com/workos/authkit-nextjs/issues/45.
Released a variation of this in 0.11.0.
Cheers, thanks @PaulAsjes!
Fixes issue #58
Right now, if you set a cookie on your backend and try to use AuthKit with nextjs on your frontend, it will not work unless you set the cookieName to "wos-session".
This would allow users who are integrating with workOS in a full stack application to customize the cookieName used. For example, in a nodejs backend:
Then you would set the optional env var
WORKOS_COOKIE_NAME
on the frontend and AuthKit would automatically and properly consume the cookie 🍪 😄