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_URIhas been renamed toNEXT_PUBLIC_WORKOS_REDIRECT_URIto make Vercel preview deployments viable - Additionally, the redirect URI can now be configured directly in the middleware at runtime via the new
redirectUriparameter getUserhas been renamed towithAuthas the former was an increasingly inaccurate name- authkit-nextjs now uses ESM over CJS to build
getSessionallows you to retrieve the session data from server side routes- Cookie name is now configurable via the
WORKOS_COOKIE_NAMEenvironment 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