v0.11.0
This update includes breaking changes to 0.10.1, including renaming getUser
to withAuth
and changing how the redirect URI is set in environment variables. Please read the release notes carefully before upgrading.
Release notes
- Environment variable
WORKOS_REDIRECT_URI
has been renamed toNEXT_PUBLIC_WORKOS_REDIRECT_URI
to make Vercel preview deployments viable - Additionally, the redirect URI can now be configured directly in the middleware at runtime via the new
redirectUri
parameter getUser
has been renamed towithAuth
as the former was an increasingly inaccurate name- authkit-nextjs now uses ESM over CJS to build
getSession
allows you to retrieve the session data from server side routes- Cookie name is now configurable via the
WORKOS_COOKIE_NAME
environment variable
What's Changed
- Bump path-to-regexp from 6.2.2 to 6.3.0 by @dependabot in #88
- Add getSession by @PaulAsjes in #91
- Build package using esm over cjs by @lucasmotta in #87
- Allow for dynamically set redirect URIs by @PaulAsjes in #82
New Contributors
- @dependabot made their first contribution in #88
Full Changelog: v0.10.1...v0.11.0