workos / authkit-nextjs

The WorkOS library for Next.js provides convenient helpers for authentication and session management using WorkOS & AuthKit with Next.js.
MIT License
67 stars 18 forks source link

Set max age on cookie #48

Closed PaulAsjes closed 5 months ago

PaulAsjes commented 5 months ago

Sessions were not persisting on Chrome or iOS when the browser was completely shut down. This fixes that by adding a maxAge value to the cookie.