diff --git a/README.md b/README.md index 793373e..120a5cb 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,16 @@ The AuthKit library for Next.js provides convenient helpers for authentication a ## Installation -Install the package with: +Install the package alongside the WorkOS Node SDK (a peer dependency): ``` -pnpm i @workos-inc/authkit-nextjs +pnpm i @workos-inc/authkit-nextjs @workos-inc/node ``` or ``` -yarn add @workos-inc/authkit-nextjs +yarn add @workos-inc/authkit-nextjs @workos-inc/node ``` ## Video tutorial diff --git a/package.json b/package.json index 3ebcf17..4c1d8fd 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,13 @@ }, "dependencies": { "@sindresorhus/fnv1a": "^3.1.0", - "@workos-inc/node": "^9.0.0", "iron-session": "^8.0.4", "jose": "^5.10.0", "path-to-regexp": "^6.3.0", "valibot": "^1.2.0" }, "peerDependencies": { + "@workos-inc/node": "^9.0.0", "next": "^13.5.9 || ^14.2.26 || ^15.2.3 || ^16", "react": "^18.0 || ^19.0.0", "react-dom": "^18.0 || ^19.0.0" @@ -56,6 +56,7 @@ "@types/react": "18.2.67", "@types/react-dom": "18.2.22", "@vitest/coverage-v8": "^3.2.4", + "@workos-inc/node": "^9.0.0", "jsdom": "^26.1.0", "next": "^16.2.1", "oxfmt": "^0.42.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 112cef1..71313db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,9 +14,6 @@ importers: '@sindresorhus/fnv1a': specifier: ^3.1.0 version: 3.1.0 - '@workos-inc/node': - specifier: ^9.0.0 - version: 9.1.0 iron-session: specifier: ^8.0.4 version: 8.0.4 @@ -54,6 +51,9 @@ importers: '@vitest/coverage-v8': specifier: ^3.2.4 version: 3.2.4(vitest@3.2.4(@types/node@20.19.37)(jsdom@26.1.0)(terser@5.46.0)) + '@workos-inc/node': + specifier: ^9.0.0 + version: 9.1.0 jsdom: specifier: ^26.1.0 version: 26.1.0 @@ -1946,6 +1946,7 @@ packages: '@ungap/structured-clone@1.3.0': resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} + deprecated: Potential CWE-502 - Update to 1.3.1 or higher '@unpic/core@1.0.3': resolution: {integrity: sha512-aum9YNVUGso7MjGLD0Rp/08kywCGLqZ03/q6VQBFFakDBOXWEc8D4kPGcZ8v5wEnGRex3lE+++bOuucBp3KJ/w==}