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
58 stars 14 forks source link

Set max age on cookie #48

Closed PaulAsjes closed 4 months ago

PaulAsjes commented 4 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.