{"_id":"@ory/nextjs","_rev":"14-0afb73c5871940ff9a1f1ca0306bce62","name":"@ory/nextjs","dist-tags":{"next":"1.0.0-next.5","latest":"1.0.0"},"versions":{"1.0.0-next.0":{"name":"@ory/nextjs","version":"1.0.0-next.0","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"license":"Apache License 2.0","_id":"@ory/nextjs@1.0.0-next.0","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"dist":{"shasum":"6a40a53c8eb38f5847054035a8b1325fab070e30","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0-next.0.tgz","fileCount":28,"integrity":"sha512-4NE6I4AzqUuudcCBo4hMzNFzdaCyq1y+1gPobBh+Lz3jKYGX0c51mnwx+/QXF/u3NE0QPvT1DMSPUxvrMu9NxA==","signatures":[{"sig":"MEYCIQCt5t26XPdX6c+JyUbhErQPu0TTfU4mV2uFuE5LWOHPzAIhAKUFHXlAGCPB9CRL7e6qkMg8KhquV3Hksuo4c4opOBD5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":283648},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"gitHead":"5311e4287bc47d8e908ae9c25ea7274be5ec556d","private":false,"_npmUser":{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},"_npmVersion":"10.8.1","description":"This library was generated with [Nx](https://nx.dev).","directories":{},"_nodeVersion":"20.13.1","dependencies":{"psl":"^1.15.0","cookie":"^1.0.1","@ory/client-fetch":"^1.15.6","set-cookie-parser":"^2.7.1"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.3.0","babel-jest":"^29.7.0","@types/cookie":"^0.6.0","jest-esm-transformer":"^1.0.0","@types/set-cookie-parser":"^2.4.10"},"peerDependencies":{"next":">=13.1.0","react":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nextjs_1.0.0-next.0_1735906835342_0.5524748794901566","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-next.1":{"name":"@ory/nextjs","version":"1.0.0-next.1","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"license":"Apache License 2.0","_id":"@ory/nextjs@1.0.0-next.1","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"dist":{"shasum":"c1f85e4197e2c8e7f013c9f3f31b03558724f6ea","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0-next.1.tgz","fileCount":27,"integrity":"sha512-O1DnbilWJ66XjRLqRihVPjKl6C+Bd8BfwopHtf7d8k20/t41xT5ucG+O8cBWBja036FhXqArpyza3Hnom3fD2A==","signatures":[{"sig":"MEQCIA5dfic/DROO1NIOAxRoy6CtZZubLawd7ZJfmhC+xhrjAiBP8QHg9a592WJA6jqjwhm7SsoHJClpS6hqHNu0nVqMcw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":244038},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"gitHead":"f06296c9244179abfa44dbde4fc926afeb196dda","private":false,"_npmUser":{"name":"arekkas","email":"aeneas@ory.sh"},"_npmVersion":"10.2.4","description":"This package contains the Next.js SDK for Ory. It provides a set of React components, server-side components, and hooks to interact with the Ory ecosystem.","directories":{},"_nodeVersion":"21.6.1","dependencies":{"psl":"^1.15.0","cookie":"^1.0.1","@ory/client-fetch":"~1.16.0","set-cookie-parser":"^2.7.1"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"8.3.0","babel-jest":"^29.7.0","@types/cookie":"^0.6.0","jest-esm-transformer":"^1.0.0","@types/set-cookie-parser":"^2.4.10"},"peerDependencies":{"next":">=13.1.0","react":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nextjs_1.0.0-next.1_1737022095140_0.38957945794979687","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-next.2":{"name":"@ory/nextjs","version":"1.0.0-next.2","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"license":"Apache License 2.0","_id":"@ory/nextjs@1.0.0-next.2","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"dist":{"shasum":"f6725227064664042f086b04537ee72988e09d91","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0-next.2.tgz","fileCount":27,"integrity":"sha512-zxaUY2+mIHXTaJiE1KVXDE+jEbt/ogrgPCzi1H6+T/txhpCpeiJUJNE3Ys/yJcgmk/abjqr5zfDNP2JmBltVQw==","signatures":[{"sig":"MEQCIAQLieg8d0h4Df24lZ9icF+eGGf7jr6laygUPltgg3T3AiBdf3G0GFHjHwKydD9sOOb3qA2MUFps5MplCYxdtoF/Ag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":257365},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"gitHead":"7c32e5d7375d1b06ee677d4c88539c4269c8afff","private":false,"_npmUser":{"name":"arekkas","email":"aeneas@ory.sh"},"_npmVersion":"10.2.4","description":"This package contains the Next.js SDK for Ory. It provides a set of React components, server-side components, and hooks to interact with the Ory ecosystem.","directories":{},"_nodeVersion":"21.6.1","dependencies":{"psl":"^1.15.0","cookie":"^1.0.1","@ory/client-fetch":"~1.16.0","set-cookie-parser":"^2.7.1"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"8.3.0","babel-jest":"^29.7.0","@types/cookie":"^0.6.0","jest-esm-transformer":"^1.0.0","@types/set-cookie-parser":"^2.4.10"},"peerDependencies":{"next":">=13.1.0","react":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nextjs_1.0.0-next.2_1737194602240_0.2932466656101602","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-next.22":{"name":"@ory/nextjs","version":"1.0.0-next.22","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"license":"Apache License 2.0","_id":"@ory/nextjs@1.0.0-next.22","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"dist":{"shasum":"2c35247dacfe77bbefeeee43f9acff1e5b8e34f7","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0-next.22.tgz","fileCount":27,"integrity":"sha512-O6aLfQaAGg59Xb2nWsroU2n7CEXfcc0qCunhx5apxHznOkKe3ghEFzgY3Gp4G/2KtzmVxHO3A9BBnL080YisFA==","signatures":[{"sig":"MEUCIFj4qQYooTAXzsONbpbkGRuhm3YHfMK1F/wa54/3UV9nAiEAtHDVCl9CbPfdxXfB68EHv8W48HDoxouDaBvQYPX8oMQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":244315},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"gitHead":"d9a8607ca28a5909b5ad58ab5995ce8d38dd41ae","private":false,"_npmUser":{"name":"arekkas","email":"aeneas@ory.sh"},"_npmVersion":"10.2.4","description":"This package contains the Next.js SDK for Ory. It provides a set of React components, server-side components, and hooks to interact with the Ory ecosystem.","directories":{},"_nodeVersion":"21.6.1","dependencies":{"psl":"^1.15.0","cookie":"^1.0.1","@ory/client-fetch":"~1.16.0","set-cookie-parser":"^2.7.1"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"8.3.0","babel-jest":"^29.7.0","@types/cookie":"^0.6.0","jest-esm-transformer":"^1.0.0","@types/set-cookie-parser":"^2.4.10"},"peerDependencies":{"next":">=13.1.0","react":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nextjs_1.0.0-next.22_1737194858275_0.2049053348733474","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-next.3":{"name":"@ory/nextjs","version":"1.0.0-next.3","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"license":"Apache License 2.0","_id":"@ory/nextjs@1.0.0-next.3","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"dist":{"shasum":"784d09b1448ce38677e309ad285095abd169ee67","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0-next.3.tgz","fileCount":27,"integrity":"sha512-kseO3MaeLuA3pLJCr4ANRkDNuw+F8s5WGFkKrUFxEnWt27SZGxxkcFMB2Viw8I8XzONUuPGwYh81Cqx5p9x6XA==","signatures":[{"sig":"MEQCIEVHxMk41cYPrZkzLkTIHsP3GWCOKuPdM0bV7zEJbWmOAiBX3uPyxcO+RtwW9Xsu/gKlKvKXIGylIcWa2JDBYUxwCg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":262455},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"gitHead":"a1e000703d9a85310d7700e49ec037604b9e72eb","private":false,"_npmUser":{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},"_npmVersion":"10.8.1","description":"This package contains the Next.js SDK for Ory. It provides a set of React components, server-side components, and hooks to interact with the Ory ecosystem.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"psl":"^1.15.0","cookie":"^1.0.1","@ory/client-fetch":"~1.16.0","set-cookie-parser":"^2.7.1"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"8.3.0","babel-jest":"^29.7.0","@types/cookie":"^0.6.0","jest-esm-transformer":"^1.0.0","@types/set-cookie-parser":"^2.4.10"},"peerDependencies":{"next":">=13.1.0","react":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nextjs_1.0.0-next.3_1737463991776_0.48127097275977926","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-next.5":{"name":"@ory/nextjs","version":"1.0.0-next.5","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"license":"Apache License 2.0","_id":"@ory/nextjs@1.0.0-next.5","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"dist":{"shasum":"2f22c712bed9149c22793fc9d5a9622aa2f8fe71","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0-next.5.tgz","fileCount":27,"integrity":"sha512-f2K+0jMK71beVoC+rJ55RiaZHmLOG1pOfqxOfjk6OoTptkWsO+Yn+SCFS3WtxA76jCgjWB7gsUgm1xtYDmYE4w==","signatures":[{"sig":"MEUCIHsJovCRqZKhmeZ/RIDdQe4/INcn3sUliTnnlRwg68gMAiEA3tqsT9Gims9u69gufteNuwmJySyjQOnpEHBL9U37JGc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":264389},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"gitHead":"fde42397e8632a38470e7ae38b550f59d27cd0da","private":false,"_npmUser":{"name":"arekkas","email":"aeneas@ory.sh"},"_npmVersion":"10.9.2","description":"This package contains the Next.js SDK for Ory. It provides a set of React components, server-side components, and hooks to interact with the Ory ecosystem.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"psl":"^1.15.0","cookie":"^1.0.1","@ory/client-fetch":"~1.19.0","set-cookie-parser":"^2.7.1"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"8.3.0","babel-jest":"^29.7.0","@types/cookie":"^0.6.0","jest-esm-transformer":"^1.0.0","@types/set-cookie-parser":"^2.4.10"},"peerDependencies":{"next":">=13.1.0","react":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nextjs_1.0.0-next.5_1742916370532_0.6522219737048365","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.0":{"name":"@ory/nextjs","version":"1.0.0-rc.0","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"license":"Apache License 2.0","_id":"@ory/nextjs@1.0.0-rc.0","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"dist":{"shasum":"bf3f9a4bf2cabc9ebfb272247d795297e13195e6","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0-rc.0.tgz","fileCount":27,"integrity":"sha512-gmyu1XxQy/KFVwJq0yG44tQ1bk/cqFCvzqjxD0vABVNwhEqShkNrbJPLNxGQ+JWRabP/9M4sVzRwlyds/yapmQ==","signatures":[{"sig":"MEUCIFZgyuRxbYokQSQUxoLRtTp4CAkUATboC20Zp3oQ1yyQAiEAhc6UHqeghm2Y9O0FV/77+GL9T1aEMPoVe/zsXWmszqU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":250268},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"gitHead":"093d3bc79a819d99d32b65849051a74b681c9a4a","private":false,"_npmUser":{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},"_npmVersion":"10.8.1","description":"This package contains the Next.js SDK for Ory. It provides a set of React components, server-side components, and hooks to interact with the Ory ecosystem. Supports both app and page routers.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"psl":"^1.15.0","cookie":"^1.0.1","@ory/client-fetch":"~1.20.0","set-cookie-parser":"^2.7.1"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.3.0","babel-jest":"^29.7.0","@types/cookie":"^0.6.0","jest-esm-transformer":"^1.0.0","@types/set-cookie-parser":"^2.4.10"},"peerDependencies":{"next":">=13.1.0","react":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nextjs_1.0.0-rc.0_1747316177662_0.22498044893617686","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.1":{"name":"@ory/nextjs","version":"1.0.0-rc.1","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"license":"Apache License 2.0","_id":"@ory/nextjs@1.0.0-rc.1","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"dist":{"shasum":"c54293e16c741d160b6b2f8d3bc31acb7bd4bc16","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0-rc.1.tgz","fileCount":28,"integrity":"sha512-6qd2OIlhWr9hnMEUumPzCBwd1Fmp7IO6SffpTOx8SCU5PnIW6cJn1nCepbaqP1M0L0AaV0ebMC/BFweYJKNEaQ==","signatures":[{"sig":"MEYCIQDzJlxogiWjzn/jgmT9LLGg+Lj7H5kUhAG91QKaYKmMBQIhANf+6Bsovh1EwV0hvg8YvJvatOv+Qcza88GEtAAfMG7J","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":254097},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"gitHead":"f7a7c4aefee71e5084d299ad062e20f9b16ea13a","private":false,"_npmUser":{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},"_npmVersion":"11.6.2","description":"This package contains the Next.js SDK for Ory. It provides a set of React components, server-side components, and hooks to interact with the Ory ecosystem. Supports both app and page routers.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"psl":"^1.15.0","cookie":"^1.0.1","@ory/client-fetch":"1.22.22","set-cookie-parser":"^2.7.1"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.5.0","babel-jest":"^29.7.0","@types/cookie":"^0.6.0","jest-esm-transformer":"^1.0.0","@types/set-cookie-parser":"^2.4.10"},"peerDependencies":{"next":">=13.1.0","react":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nextjs_1.0.0-rc.1_1770129697535_0.2778815474411547","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"_id":"@ory/nextjs@1.0.0","ory":{"oel":">=26.3"},"dist":{"shasum":"6a6a01cb3a05d2621b111451ebb791b20dc66c65","tarball":"https://registry.npmjs.org/@ory/nextjs/-/nextjs-1.0.0.tgz","fileCount":31,"integrity":"sha512-l+51ureHqZW5issQ0oc2ZjG06QAZT6tzJAuy+v8TGPF6GNRRPn+F/XbYuvn5MO+NE6AXiUhW+5vVEvCZ6xzBBg==","signatures":[{"sig":"MEQCIDg1XTEorWe9gdIpyDku66j+ffehU9YnK3QzHFg9oQrEAiAe/Ud5xrXbCmq0vm5us7fCTuFPgQXCUNi/jYN5ntxYeA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC5VWfjb3WNZ5vNWxyRAUHJt686slkAW1U2hi8tb+LE2wIgT7vplTsAG5ePtYriW2PZ5jyEKgGZfp9UY/gjGhUhLV4="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ory%2fnextjs@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":245596},"main":"./dist/index.js","name":"@ory/nextjs","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./app":{"types":"./dist/app/index.d.ts","import":"./dist/app/index.mjs","require":"./dist/app/index.js"},"./pages":{"types":"./dist/pages/index.d.ts","import":"./dist/pages/index.mjs","require":"./dist/pages/index.js"},"./middleware":{"types":"./dist/middleware/index.d.ts","import":"./dist/middleware/index.mjs","require":"./dist/middleware/index.js"}},"license":"Apache License 2.0","private":false,"scripts":{"build":"tsup --clean --dts"},"version":"1.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"23a5edb9-3878-4cc4-90a1-11aee7beba4b"}},"keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"repository":{"url":"git+https://github.com/ory/elements.git","type":"git","directory":"packages/nextjs"},"description":"Ory for Next.js: server functions that fetch Ory flows and sessions, client hooks that fetch Ory flows, and a middleware for local development.","directories":{},"maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"clintjhill","email":"clint.hill@gmail.com"}],"dependencies":{"@ory/ssr":"^1.0.0","@ory/client-fetch":"^1.22.65"},"typesVersions":{"*":{"index":["./dist/index.d.ts"],"middleware":["./dist/middleware/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.5.0","react":"19.2.7","typedoc":"0.28.19","babel-jest":"^29.7.0","typescript":"5.9.3","@types/react":"19.2.17","jest-esm-transformer":"^1.0.0"},"peerDependencies":{"next":">=13.1.0","react":">=18.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nextjs_1.0.0_1793827167063_0.7424402853384807"}}},"time":{"created":"2025-01-03T12:20:35.273Z","modified":"2026-11-04T21:19:27.440Z","1.0.0-next.0":"2025-01-03T12:20:35.596Z","1.0.0-next.1":"2025-01-16T10:08:15.412Z","1.0.0-next.2":"2025-01-18T10:03:22.468Z","1.0.0-next.22":"2025-01-18T10:07:38.470Z","1.0.0-next.3":"2025-01-21T12:53:12.004Z","1.0.0-next.4":"2025-02-03T07:55:55.290Z","1.0.0-next.5":"2025-03-25T15:26:10.743Z","1.0.0-rc.0":"2025-05-15T13:36:17.882Z","1.0.0-rc.1":"2026-02-03T14:41:37.701Z","1.0.0":"2026-11-04T21:19:27.155Z"},"license":"Apache License 2.0","keywords":["ory","auth","react","passwordless","login","user management","permissions","authentication","nextjs","vercel","app router","pages router"],"description":"Ory for Next.js: server functions that fetch Ory flows and sessions, client hooks that fetch Ory flows, and a middleware for local development.","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"clintjhill","email":"clint.hill@gmail.com"}],"readme":"# `@ory/nextjs`\n\nThis package contains the Next.js SDK for Ory. It provides a middleware,\nserver-side functions for the app router, and hooks for the pages router to\ninteract with the Ory ecosystem.\n\n> [!NOTE]  \n> This package's primary use case is for developing custom components for login,\n> registration, verification, settings, recovery, or consent. For integrating\n> authentication without changing the UI, follow our\n> [guide for Auth.js](https://www.ory.com/docs/getting-started/integrate-auth/auth-js).\n\n## Use case\n\nThe package has two parts:\n\n- The functions in `@ory/nextjs/app` fetch flows and sessions, and the hooks in\n  `@ory/nextjs/pages` fetch flows, for your custom UI. They work in every\n  deployment, on Ory Network and on the Ory Enterprise License (OEL).\n- The middleware in `@ory/nextjs/middleware` is for local development and\n  preview deployments, where your application and Ory are on different sites. In\n  production, put Ory on your application's domain: a\n  [custom domain](https://www.ory.com/docs/guides/custom-domains) (CNAME) on Ory\n  Network, or your own domains on OEL.\n\nThis package includes a middleware for the app and page router that enables\nlocal development and preview environments to work with\n[Ory's cookie security model](https://www.ory.com/docs/security-model). The\nmiddleware serves the Ory APIs on your application's own origin.\n\n> [!WARNING]  \n> Don't run Ory Tunnel and don't set the SDK URL to `http://localhost:4000` when\n> you use the `@ory/nextjs` middleware. Guides that tell you to start\n> `ory tunnel` for local development describe integrations without this package.\n> Set `NEXT_PUBLIC_ORY_SDK_URL` to the URL of your Ory APIs instead: the Ory\n> Network project URL or custom domain, or the domain you serve Ory on with OEL.\n\n## Installation\n\nRun `npm install @ory/nextjs` or `yarn add @ory/nextjs` to install the package.\nTo render the flows, also install\n[`@ory/elements-react`](https://www.npmjs.com/package/@ory/elements-react).\n\n## Configuration\n\nSet `NEXT_PUBLIC_ORY_SDK_URL` to the URL of your Ory APIs: on Ory Network, the\nproject SDK URL or the project's custom domain; on OEL, the domain you serve Ory\non. `ORY_SDK_URL` is read as a fallback.\n\nSet `ORY_PROJECT_API_TOKEN` to an\n[API key](https://www.ory.com/docs/concepts/personal-access-token) of your Ory\nproject. The middleware sends it so that Ory accepts your application's origin\nas the base URL. Without it, links in recovery and verification emails point to\nthe Ory project URL, and social sign-in and SAML don't return to your\napplication. Keep the key server-side: don't prefix it with `NEXT_PUBLIC_`. For\npreview deployments, create a dedicated API key and set it only in the preview\nenvironment.\n\n## Usage\n\nCreate the middleware. `trustedOrigins` is required: `createOryMiddleware`\nthrows when it is unset, empty, or has an invalid entry. List the local\ndevelopment origin as an exact origin, and your preview deployments as a glob\nthat includes your project and team. In a glob, `*` matches one or more letters,\ndigits, or hyphens and never a dot, and it can't make up the whole label right\nbefore a public suffix from the [Public Suffix List](https://publicsuffix.org/),\nsuch as `vercel.app` or `com`: `https://*.vercel.app` is rejected.\n\nThe middleware serves only the origins in `trustedOrigins`. For any other\norigin, the flow functions use `NEXT_PUBLIC_ORY_SDK_URL` and log a warning. The\nmiddleware's `matcher` must cover every page that calls a function from\n`@ory/nextjs/app`; the default `export const config = {}` does.\n\nThe middleware is meant for local development and preview deployments. It isn't\nsupported for production traffic: through the middleware, Ory sees every request\ncoming from your server instead of your users. In production, put Ory on the\nsame site as your application and set `NEXT_PUBLIC_ORY_SDK_URL` to that URL: a\n[custom domain](https://www.ory.com/docs/guides/custom-domains) (CNAME) on Ory\nNetwork, or your own domains on OEL.\n\n```ts\n// middleware.ts\nimport { createOryMiddleware } from \"@ory/nextjs/middleware\"\nimport oryConfig from \"@/ory.config\"\n\nexport const middleware = createOryMiddleware({\n  ...oryConfig,\n  trustedOrigins: [\n    \"http://localhost:3000\",\n    \"https://my-app-*-my-team.vercel.app\",\n  ],\n})\n\nexport const config = {}\n```\n\nFetch or create a flow in an app router page and render it with Ory Elements:\n\n```tsx\n// app/auth/login/page.tsx\nimport { Login } from \"@ory/elements-react/theme\"\nimport \"@ory/elements-react/theme/styles.css\"\nimport { getLoginFlow, OryPageParams } from \"@ory/nextjs/app\"\n\nimport config from \"@/ory.config\"\n\nexport default async function LoginPage(props: OryPageParams) {\n  const flow = await getLoginFlow(config, props.searchParams)\n\n  if (!flow) {\n    return null\n  }\n\n  return <Login flow={flow} config={config} />\n}\n```\n\n`@/ory.config` exports the `OryClientConfiguration` object from\n`@ory/elements-react`. The middleware and the flow functions read its `project`\nproperty to find the route of each flow. The flow functions and `getError`\nattach the URL the browser uses to reach Ory to what they return, so the\ncomponent uses the same URL as the server. `SessionProvider` fetches the session\nitself: pass it `baseUrl={await getOryBaseUrl()}`.\n\n### Which URL the browser uses\n\nWhen Ory is on the same site as the application, the URL is\n`NEXT_PUBLIC_ORY_SDK_URL`. Otherwise it is the page's origin when the middleware\nhandled the page and the origin is in `trustedOrigins`, and\n`NEXT_PUBLIC_ORY_SDK_URL` if not. `getOryBaseUrl()` returns the same URL.\n\nWhen the browser would call Ory on another site, Ory's session cookies don't\nreach the application, and the package logs a warning once:\n\n| Warning                                                                        | Fix                                                                                                                                                                                                  |\n| ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `The Ory proxy handled a request for <origin>, which is not in trustedOrigins` | In local development or a preview deployment, add the origin to `trustedOrigins`. In production, use a custom domain on the app's site.                                                              |\n| `The app (<origin>) and Ory (<url>) are on different sites`                    | The middleware didn't run for this page. Export it from `proxy.ts` (`middleware.ts` before Next.js 16) in the project root, or in `src/` if the app uses one, and make its `matcher` cover the page. |\n| `The request's Host header is not a valid origin`                              | Configure the reverse proxy in front of the application to forward the `Host` header the browser sent.                                                                                               |\n\nThe pages router hooks can't see the middleware: they use\n`NEXT_PUBLIC_ORY_SDK_URL` when it is on the same site as the page, and the\npage's origin otherwise.\n\n| Entry point              | Exports                                                                                                                                                              |\n| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `@ory/nextjs/middleware` | `createOryMiddleware`                                                                                                                                                |\n| `@ory/nextjs/app`        | `getLoginFlow`, `getRegistrationFlow`, `getRecoveryFlow`, `getVerificationFlow`, `getSettingsFlow`, `getLogoutFlow`, `getServerSession`, `getError`, `getOryBaseUrl` |\n| `@ory/nextjs/pages`      | `useLoginFlow`, `useRegistrationFlow`, `useRecoveryFlow`, `useVerificationFlow`, `useSettingsFlow`, `useLogoutFlow`, `useError`                                      |\n\nCheck the\n[app router](https://github.com/ory/elements/blob/main/examples/nextjs-app-router/middleware.ts)\nand\n[page router](https://github.com/ory/elements/blob/main/examples/nextjs-pages-router/middleware.ts)\nmiddleware example for more details.\n\n## Coding agents\n\nThe package ships documentation for coding agents that matches the installed\nversion:\n\n- `node_modules/@ory/nextjs/agents/GUIDE.md`: an integration guide.\n- `node_modules/@ory/nextjs/skills/add-ory-auth-to-nextjs/SKILL.md`: a skill\n  that adds the flows to a Next.js application.\n\nAgents don't look into `node_modules` unless something points them there. Paste\nthis line into your project's `AGENTS.md`, `CLAUDE.md`, or the file your agent\nreads:\n\n```md\n- Ory for Next.js (`@ory/nextjs`, not `@ory/integrations`): read\n  `node_modules/@ory/nextjs/agents/GUIDE.md` before changing authentication\n  code.\n```\n\n## Learn by example\n\nSee the [examples](https://github.com/ory/elements/blob/main/examples) directory\nfor examples on how to use the package.\n\n## Development\n\nThis package is built using Nx.\n\n### Building\n\nRun `nx build @ory/nextjs` to build the library.\n\n### Developing\n\nRun `nx dev @ory/nextjs` to watch the source code for changes and continuously\nbuild the library.\n\n### Running unit tests\n\nRun `nx test @ory/nextjs` to execute the unit tests via\n[Jest](https://jestjs.io).\n","readmeFilename":"","repository":{"url":"git+https://github.com/ory/elements.git","type":"git","directory":"packages/nextjs"}}