{"_id":"@alpakaslab/nextjs-jwt-auth","_rev":"15-3ecfae003d5c1f944d63552a962fe8c8","name":"@alpakaslab/nextjs-jwt-auth","dist-tags":{"latest":"0.2.2"},"versions":{"0.0.2":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.0.2","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.0.2","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"8ad850e7cb7ca3489807e5deb59f562cf710db95","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.0.2.tgz","fileCount":6,"integrity":"sha512-ERQN0JoAAyNQayzmh8YSH/U9cBGsgPAj5uqEjhbmb8R3cA2LQkTNkTwCbme6Lubi/dmm0Rh2j/NfYGrPrOI3Dg==","signatures":[{"sig":"MEQCIAjNWHQ2Kq/Mppu7XDEOc/+Ay2/1iEOxu2IrwTza5pYYAiBYVmT5RiZmIMxMNaYqLZaTqjhdrDBfUA6a6q5Cx2jEJg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20654},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.0.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/e3e56db75cc08afb461ff73108bd6270/alpakaslab-nextjs-jwt-auth-0.0.2.tgz","_integrity":"sha512-ERQN0JoAAyNQayzmh8YSH/U9cBGsgPAj5uqEjhbmb8R3cA2LQkTNkTwCbme6Lubi/dmm0Rh2j/NfYGrPrOI3Dg==","_npmVersion":"10.2.3","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.19.0","dependencies":{"jose":"^5.1.3","@panva/hkdf":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","prettier":"^3.1.1","typescript":"^5.3.3","@types/node":"^20.10.4","@changesets/cli":"^2.27.1"},"peerDependencies":{"next":"^14.0.4"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.0.2_1702915961021_0.5598829864137609","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.0.3","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.0.3","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"848792105898f6f0910814ac6274510faec69260","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.0.3.tgz","fileCount":6,"integrity":"sha512-hwRFR1jJehK1tCHVCkUoy54Ldn5d4KtZ/uGsqORB8QktgEmObYIIDULxV/MBm6w0bwkmd1YHcwtnLJGCqFblyQ==","signatures":[{"sig":"MEQCIBT6euxOX7canCvpD2cbtMAcEyLUplxB3g0o+mNKLh4TAiBRyIcPTTdMM4HTRxQdITQ/FQeKFReSkYZiS6rANYvyNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20686},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.0.3.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/5b1bff25c000b80c8923f41e7a5dd7ce/alpakaslab-nextjs-jwt-auth-0.0.3.tgz","_integrity":"sha512-hwRFR1jJehK1tCHVCkUoy54Ldn5d4KtZ/uGsqORB8QktgEmObYIIDULxV/MBm6w0bwkmd1YHcwtnLJGCqFblyQ==","_npmVersion":"10.2.3","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.19.0","dependencies":{"jose":"^5.1.3","@panva/hkdf":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","prettier":"^3.1.1","typescript":"^5.3.3","@types/node":"^20.10.4","@changesets/cli":"^2.27.1"},"peerDependencies":{"next":"^14.0.4"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.0.3_1702926335519_0.6290625332931321","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.0.4","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.0.4","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"c76aa3bc0766983cdf69273ae69838e54d7f82bb","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.0.4.tgz","fileCount":6,"integrity":"sha512-NA3w8YmCYIMyM/VuThflr4KFjnAcHcL8PirIexmEDwPmdOJl4BZW2vdmNK7E2TgojMZTnMSJf4vcTqy6ODluvA==","signatures":[{"sig":"MEQCIHVdFPW/L5YpOYj5nvtjDgwk42iAPc9ITSbN5BRn+klHAiA8Ty1IsvWkv+g421rA1b4jXfFYoensDJQl0Awjem9L7Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21313},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.0.4.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/9190e936db720c68f40830c7a7db8c33/alpakaslab-nextjs-jwt-auth-0.0.4.tgz","_integrity":"sha512-NA3w8YmCYIMyM/VuThflr4KFjnAcHcL8PirIexmEDwPmdOJl4BZW2vdmNK7E2TgojMZTnMSJf4vcTqy6ODluvA==","_npmVersion":"10.2.3","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.19.0","dependencies":{"jose":"^5.1.3","@panva/hkdf":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","prettier":"^3.1.1","typescript":"^5.3.3","@types/node":"^20.10.4","@changesets/cli":"^2.27.1"},"peerDependencies":{"next":"^14.0.4"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.0.4_1702927892187_0.22204953866836874","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.0.5","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.0.5","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"ea32a1bf5086e4d6017b07598e1b21e50cc60602","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.0.5.tgz","fileCount":6,"integrity":"sha512-HKkeHGNCQ7MnYXK2/JZYQ4iO8BAhcP3pfmu75dXDV8ycEKkmlC3kQioVFonCejhu7eVTRQU+Qaw9gju4txeSoQ==","signatures":[{"sig":"MEUCIHbwyrwm+7/9HQXLrgyDRKCxjZVLIj5wrAYK2jM6V0I2AiEA7hEVmnw6HMx943Losxxbt9QkFuCtSYGOzieRy8rS0Gc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21203},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.0.5.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/a9a11b54c04997bbc20b77bfaa61c35b/alpakaslab-nextjs-jwt-auth-0.0.5.tgz","_integrity":"sha512-HKkeHGNCQ7MnYXK2/JZYQ4iO8BAhcP3pfmu75dXDV8ycEKkmlC3kQioVFonCejhu7eVTRQU+Qaw9gju4txeSoQ==","_npmVersion":"10.2.3","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.19.0","dependencies":{"jose":"^5.1.3","@panva/hkdf":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","prettier":"^3.1.1","typescript":"^5.3.3","@types/node":"^20.10.4","@changesets/cli":"^2.27.1"},"peerDependencies":{"next":"^14.0.4"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.0.5_1702931268352_0.05543222179529339","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.0.6","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.0.6","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"136cf6da62997760030e1269d3dc7b6c8adce508","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.0.6.tgz","fileCount":7,"integrity":"sha512-JWZwoSGWW3B2bOpchB/U+lhBjbPHdz53yKkzM0oturvEQoC7ZBBLjiAOfXscNNY1Dbt+re3NiTdVqh3S1qFuew==","signatures":[{"sig":"MEYCIQCBqdpXtbl6FxAN6dCmbyAhk79R1AxJP28F7DU6t26y4gIhAK3bQ5ZpKXbGPxFTn+KRQ9VHpCpaiP6KNCP1JjztjojJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21854},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.0.6.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/73e2ada0d7067ffc24bede9cd855427b/alpakaslab-nextjs-jwt-auth-0.0.6.tgz","_integrity":"sha512-JWZwoSGWW3B2bOpchB/U+lhBjbPHdz53yKkzM0oturvEQoC7ZBBLjiAOfXscNNY1Dbt+re3NiTdVqh3S1qFuew==","_npmVersion":"10.2.4","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.19.1","dependencies":{"jose":"^5.2.2","@panva/hkdf":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/node":"^20.11.25","@changesets/cli":"^2.27.1"},"peerDependencies":{"next":"^14.0.4"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.0.6_1709769677181_0.24429041316240707","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.0.7","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.0.7","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"1c5f1e623b4ef31450cf6c17ce62129ce5635707","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.0.7.tgz","fileCount":7,"integrity":"sha512-fdg6X2BuvEDQbuHSUjkjdC5ekh0M9v9CzMqq5E6iXCaq0kM8apEWgEoimBKdyw4eRQE8KoOefrBPFVwiAb4lBg==","signatures":[{"sig":"MEYCIQCOl+/ZqfaAvjc7rdkOnpF7CRlg2K+sSZF2t75xRnwgjQIhAISgoY2t3nWRCdqQNG0MPG/GiivQqocz7t00tpeNoHft","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22072},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.0.7.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/85efc9059c2ab88f09c259436e6d5a91/alpakaslab-nextjs-jwt-auth-0.0.7.tgz","_integrity":"sha512-fdg6X2BuvEDQbuHSUjkjdC5ekh0M9v9CzMqq5E6iXCaq0kM8apEWgEoimBKdyw4eRQE8KoOefrBPFVwiAb4lBg==","_npmVersion":"10.2.4","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.19.1","dependencies":{"jose":"^5.2.2","@panva/hkdf":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/node":"^20.11.25","@changesets/cli":"^2.27.1"},"peerDependencies":{"next":"^14.0.4"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.0.7_1709772601013_0.19461848375791035","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.0.8","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.0.8","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"e013178a93e7d8bdac3c05fad7bec312943b8e72","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.0.8.tgz","fileCount":7,"integrity":"sha512-bDQYIJzqnH+vA9gb7zWg6ASRTlP+BSMxolT0vEFxF4LUX5JUYH1CTcBMT9uNQd77pPW42zZ5Tv4+gh9CdTX7uw==","signatures":[{"sig":"MEYCIQDaU6FsrtyxWIcANy0Aey52zQ7JMlslU4fnq4rWvP6fvAIhAKlbIvDMRFzreNeQt2JCR+wTFZ6IIEOYqbct3f3Lthw8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22152},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.0.8.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/5c7c02c8c98974202d743702db5ffd1c/alpakaslab-nextjs-jwt-auth-0.0.8.tgz","_integrity":"sha512-bDQYIJzqnH+vA9gb7zWg6ASRTlP+BSMxolT0vEFxF4LUX5JUYH1CTcBMT9uNQd77pPW42zZ5Tv4+gh9CdTX7uw==","_npmVersion":"10.2.4","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.19.1","dependencies":{"jose":"^5.2.2","@panva/hkdf":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/node":"^20.11.25","@changesets/cli":"^2.27.1"},"peerDependencies":{"next":"^14.0.4"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.0.8_1709773189184_0.9029295337489511","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.1.0","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.1.0","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"18c1f83fe961642a3c5d1a6d9ec1e5566a99d7cf","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.1.0.tgz","fileCount":7,"integrity":"sha512-T1nLMbFuGRQkhzI5fLg8iiAdAnOr+xRlWWjZzAYN33t8Sx8lc4kbSfyd3b+Jy04xMze55p7fOl9TmPqt6+l0IA==","signatures":[{"sig":"MEYCIQCz3JpDNXmim3SWku0SQUAg8CPW7pS1dEhQI/9SKulk2gIhAOPH/ATy6qTbVU87Rgt3qivWZ1mK+MO9UHaDacgF6ojO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22430},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/ed3087b36674ad6d5f01ae431b547856/alpakaslab-nextjs-jwt-auth-0.1.0.tgz","_integrity":"sha512-T1nLMbFuGRQkhzI5fLg8iiAdAnOr+xRlWWjZzAYN33t8Sx8lc4kbSfyd3b+Jy04xMze55p7fOl9TmPqt6+l0IA==","_npmVersion":"10.7.0","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.20.4","dependencies":{"jose":"^5.9.6","@panva/hkdf":"^1.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","prettier":"^3.3.3","typescript":"^5.6.3","@types/node":"^22.8.6","@changesets/cli":"^2.27.9"},"peerDependencies":{"next":"^15.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.1.0_1730463618681_0.288353069178942","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.1.1","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.1.1","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"62b3375856d092893882ac3555ce2ff4f670e547","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.1.1.tgz","fileCount":7,"integrity":"sha512-f56rPVCNpmfvpOnbCnkwasBqaJq73o+mgdtq//y+qv3b9cTg1ygeDuNCvbxEuYtDLBhF4TMGQW0V1oe6YGJnqw==","signatures":[{"sig":"MEYCIQCM8nXlM81W3zagP3hzxcoB1yE36NpEeZLVzI2HRx200gIhAIeC0MMFsi1zx05c1yTbq7RYsaEzXgS28rPEHSnKCfuT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22472},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.1.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/2377201122f55929f997558360168115/alpakaslab-nextjs-jwt-auth-0.1.1.tgz","_integrity":"sha512-f56rPVCNpmfvpOnbCnkwasBqaJq73o+mgdtq//y+qv3b9cTg1ygeDuNCvbxEuYtDLBhF4TMGQW0V1oe6YGJnqw==","_npmVersion":"10.8.2","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.20.5","dependencies":{"jose":"^5.9.6","@panva/hkdf":"^1.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","prettier":"^3.3.3","typescript":"^5.6.3","@types/node":"^22.8.6","@changesets/cli":"^2.27.9"},"peerDependencies":{"next":"^15.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.1.1_1737673385553_0.5049750496219514","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.1.2","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.1.2","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"246d7021d1233c801446849adc577292646cd4f9","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.1.2.tgz","fileCount":7,"integrity":"sha512-O9O1dqAkc9UzzeJRl5wr+WdHpgG1v59bA7urh9g8q7RMhHj1vAbyEEmTLU+E7XvTVP+LKEK5xBXl1yXYRNnjFg==","signatures":[{"sig":"MEUCIQDdH8Yz4/tFLN5cKwnqxD59MkJY7pqkOxGmnFVAl2fHQAIgEEjpHj87stAv180c7woQXyy8kfR1Nbi0CWAsdH3UWsQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22490},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.1.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/3f7efee3de7decf1f553104273df5264/alpakaslab-nextjs-jwt-auth-0.1.2.tgz","_integrity":"sha512-O9O1dqAkc9UzzeJRl5wr+WdHpgG1v59bA7urh9g8q7RMhHj1vAbyEEmTLU+E7XvTVP+LKEK5xBXl1yXYRNnjFg==","_npmVersion":"10.8.2","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.20.5","dependencies":{"jose":"^5.9.6","@panva/hkdf":"^1.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","prettier":"^3.3.3","typescript":"^5.6.3","@types/node":"^22.8.6","@changesets/cli":"^2.27.9"},"peerDependencies":{"next":"^15.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.1.2_1737674207113_0.08449447230312157","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.1.3","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.1.3","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"7837d82888a20e4f4ff891f5a38a031c345b5777","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.1.3.tgz","fileCount":7,"integrity":"sha512-vH2DgH0wDOUQ4Dauucmm7aY7FCobJXzSZ73DARa+roEduLNLkAwFPAYRNhn6PgBDGiYztqSBDBs4+/MvDo8Tug==","signatures":[{"sig":"MEYCIQD1tvOI20RQUs74mAfFS5uxRlYxFtbDTpye5GO3VUVabQIhAM0KpUMwtNBepK2CNt6MBQg1s2/vCjd00pigjsweU8Sd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23565},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.1.3.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/52a9f7d6a6a998dbf32595de79fe4aad/alpakaslab-nextjs-jwt-auth-0.1.3.tgz","_integrity":"sha512-vH2DgH0wDOUQ4Dauucmm7aY7FCobJXzSZ73DARa+roEduLNLkAwFPAYRNhn6PgBDGiYztqSBDBs4+/MvDo8Tug==","_npmVersion":"10.8.2","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.20.8","dependencies":{"jose":"^6.0.12"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","prettier":"^3.6.2","typescript":"^5.9.2","@types/node":"^24.2.0","@changesets/cli":"^2.29.5"},"peerDependencies":{"next":"^15.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.1.3_1762266234354_0.5876189918220756","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.1.4","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.1.4","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"82e5d84afc31a76ef5132b30f173cbd775eeb09f","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.1.4.tgz","fileCount":7,"integrity":"sha512-Ux+Ok4LQDPy7Ff0CDKW9IkZxriS9koyHcAPkUwRIoS4J4D5znkHEmZN2Wui4/fZZ3qGvXApvM877vmyr/1KCuA==","signatures":[{"sig":"MEYCIQD6e66qSpvv+aODbI6AUdnjbPPyEQaf1iQPsYYwsIlKMgIhAJ8nqfgwO04tCU1lqpvCoB6B46IHp89D45w5IuMmLBL/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23597},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.1.4.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"lint":"tsc","build":"tsup index.ts --format cjs,esm --dts","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/1d7417dac6e7d6b30cbb3a3bad4561ea/alpakaslab-nextjs-jwt-auth-0.1.4.tgz","_integrity":"sha512-Ux+Ok4LQDPy7Ff0CDKW9IkZxriS9koyHcAPkUwRIoS4J4D5znkHEmZN2Wui4/fZZ3qGvXApvM877vmyr/1KCuA==","_npmVersion":"10.8.2","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"18.20.8","dependencies":{"jose":"^6.0.12"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","prettier":"^3.6.2","typescript":"^5.9.2","@types/node":"^24.2.0","@changesets/cli":"^2.29.5"},"peerDependencies":{"next":"^15.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.1.4_1762266695147_0.7741821113787832","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.2.0","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.2.0","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"b088cf478557e5f22ce6c0eb9f8b3e2fd0af7f1d","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.2.0.tgz","fileCount":14,"integrity":"sha512-ouQ0dokJDECLayHTb2Z1mmL7HlgmM79Ev+cEUYjWmTFI2KqLFVgyNfhDaeqoanRUDA4Cnp9u21S2AA1COVNeUQ==","signatures":[{"sig":"MEUCIQDrjs7GEu6tvPl7QATtzs0Xjr3nm2d+n11XrjzYUCMCXAIgCyecKMOIXxTgtFZRB+/iuD6Bi6sK8ogZaiWaclKN1ns=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23333},"main":"index.js","_from":"file:alpakaslab-nextjs-jwt-auth-0.2.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./session":"./dist/src/session.js"},"scripts":{"lint":"tsc","build":"tsdown index.ts src/session.ts --format esm --format cjs","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/d8f32411ddda556e9a601a1511f0e0a1/alpakaslab-nextjs-jwt-auth-0.2.0.tgz","_integrity":"sha512-ouQ0dokJDECLayHTb2Z1mmL7HlgmM79Ev+cEUYjWmTFI2KqLFVgyNfhDaeqoanRUDA4Cnp9u21S2AA1COVNeUQ==","_npmVersion":"10.9.4","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"22.21.1","dependencies":{"jose":"^6.0.12"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.16.0","prettier":"^3.6.2","typescript":"^5.9.2","@types/node":"^24.2.0","@changesets/cli":"^2.29.5"},"peerDependencies":{"next":"^15.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.2.0_1762267757117_0.8563127638240593","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.2.1","keywords":[],"author":"","license":"ISC","_id":"@alpakaslab/nextjs-jwt-auth@0.2.1","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"dist":{"shasum":"3d9c859390c680f966931080a1f69dd1b5a3f637","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.2.1.tgz","fileCount":14,"integrity":"sha512-kZ0gAT4esOHQyqhmJbYLtTE5SK+7w0wEekhv5Y3Oqy6pE/rQq0XlRS/pE9ysdhnghmkBmUiojtPrr2PKb3Jm4g==","signatures":[{"sig":"MEUCIQCgl1g88x3l4QzHhGG/JVXRYwx1FYwZ5rkTQy6Emg2lIgIgCEL/R8vgLQwwrnQ4VFxPNTpW/w0/Yflvykklg99Jn2Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23429},"main":"./dist/index.cjs","type":"module","_from":"file:alpakaslab-nextjs-jwt-auth-0.2.1.tgz","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./src/session":{"import":"./dist/src/session.mjs","require":"./dist/src/session.cjs"},"./package.json":"./package.json"},"scripts":{"lint":"tsc","build":"tsdown","release":"pnpm build && changeset publish"},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"_resolved":"/tmp/84cb3d665d48aa410abb59210c6cc813/alpakaslab-nextjs-jwt-auth-0.2.1.tgz","_integrity":"sha512-kZ0gAT4esOHQyqhmJbYLtTE5SK+7w0wEekhv5Y3Oqy6pE/rQq0XlRS/pE9ysdhnghmkBmUiojtPrr2PKb3Jm4g==","_npmVersion":"10.9.4","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","directories":{},"_nodeVersion":"22.21.1","dependencies":{"jose":"^6.0.12"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.16.0","prettier":"^3.6.2","typescript":"^5.9.2","@types/node":"^24.2.0","@changesets/cli":"^2.29.5"},"peerDependencies":{"next":"^15.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nextjs-jwt-auth_0.2.1_1762268507053_0.49911914541574953","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@alpakaslab/nextjs-jwt-auth","version":"0.2.2","description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./src/session":{"import":"./dist/src/session.mjs","require":"./dist/src/session.cjs"},"./package.json":"./package.json"},"keywords":[],"author":"","license":"ISC","peerDependencies":{"next":"^15.0.2"},"dependencies":{"jose":"^6.0.12"},"devDependencies":{"@changesets/cli":"^2.29.5","@types/node":"^24.2.0","prettier":"^3.6.2","tsdown":"^0.16.0","typescript":"^5.9.2"},"scripts":{"build":"tsdown","lint":"tsc","release":"pnpm build && changeset publish"},"_id":"@alpakaslab/nextjs-jwt-auth@0.2.2","_integrity":"sha512-PwjHvfe78nRnJXrb+8ddW/G3yvPgyN+F/po4/qfsHDq0vnuUK79c2PeOQrKCYD9rpwyGSqqFUodUgpky3GdWmg==","_resolved":"/tmp/ebdeabda152da885e7a631e4c857c7b9/alpakaslab-nextjs-jwt-auth-0.2.2.tgz","_from":"file:alpakaslab-nextjs-jwt-auth-0.2.2.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-PwjHvfe78nRnJXrb+8ddW/G3yvPgyN+F/po4/qfsHDq0vnuUK79c2PeOQrKCYD9rpwyGSqqFUodUgpky3GdWmg==","shasum":"fcae1de150518ffc39973bba671e9671c8e3167c","tarball":"https://registry.npmjs.org/@alpakaslab/nextjs-jwt-auth/-/nextjs-jwt-auth-0.2.2.tgz","fileCount":13,"unpackedSize":23376,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDtGRdk+oNHKTGvTYtbg8lk7LUuegvn8ssTOOQTI5S40AiAEVuJ3k3GDa83O784Yi4NUteeD95U8fb6osqZrduK0Cg=="}]},"_npmUser":{"name":"davilhlapak","email":"alpakaslab@outlook.com"},"directories":{},"maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nextjs-jwt-auth_0.2.2_1762269482219_0.9854902912856636"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-18T16:12:40.891Z","modified":"2025-11-04T15:18:02.622Z","0.0.2":"2023-12-18T16:12:41.199Z","0.0.3":"2023-12-18T19:05:35.753Z","0.0.4":"2023-12-18T19:31:32.382Z","0.0.5":"2023-12-18T20:27:48.546Z","0.0.6":"2024-03-07T00:01:17.440Z","0.0.7":"2024-03-07T00:50:01.221Z","0.0.8":"2024-03-07T00:59:49.338Z","0.1.0":"2024-11-01T12:20:18.863Z","0.1.1":"2025-01-23T23:03:05.744Z","0.1.2":"2025-01-23T23:16:47.302Z","0.1.3":"2025-11-04T14:23:54.535Z","0.1.4":"2025-11-04T14:31:35.322Z","0.2.0":"2025-11-04T14:49:17.295Z","0.2.1":"2025-11-04T15:01:47.255Z","0.2.2":"2025-11-04T15:18:02.414Z"},"license":"ISC","keywords":[],"description":"NextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](h","maintainers":[{"name":"davilhlapak","email":"alpakaslab@outlook.com"}],"readme":"## ⭐️ About\n\nNextJs JWT Auth is a library designed for the Next.js 14 ecosystem, aiming to simplify and make JWT authentication more accessible. It is particularly focused on clients who already have a backend with authenticated credentials. Based on the [next-auth](https://github.com/nextauthjs/next-auth) library.\n\n## 🚀 Getting Started\n\nInstall using an package manager\n\n```bash\npnpm add @alpakaslab/nextjs-jwt-auth\n# or\nyarn add @alpakaslab/nextjs-jwt-auth\n# or\nnpm install @alpakaslab/nextjs-jwt-auth\n```\n\n## 🧩 Initialization\n\nFirst, create an API route with the path `/api/auth/route.ts` and generate API routes using the `getApiRoutes()` helper.\n\n```ts\n// api/auth/route.ts\nimport { getApiRoutes } from '@alpakaslab/nextjs-jwt-auth'\n\nconst { DELETE, POST } = getApiRoutes<{ email: string; password: string }>({\n    callbacks: {\n        async signIn(credentials) {\n            // Your login logic\n            const user = getUser(credentials)\n\n            // If the login is correct, return an object in JWT format\n            return {...}\n\n            // If the credentials are wrong return null\n            return null\n        }\n    }\n})\n\nexport { DELETE, POST }\n```\n\nSecond, create an middleware file `/middleware.ts` and generate the handler using the `getMiddleware()` helper.\n\n```ts\n// middleware.ts\nimport { getMiddleware } from '@alpakaslab/nextjs-jwt-auth'\n\nexport const middleware = getMiddleware(undefined, async (request, payload) => {\n    // Refresh token logic\n   if(payload.experisIn > new Date()){\n        const newData = await refreshToken(payload.refreshToken)\n\n        // If the new data is correct, return an object in JWT format to update the cookie\n        if(newData){\n            return {...}\n        }\n\n        // If the refresh method returns an error, return null to force user signout\n        return null\n   }\n\n    // If you don't need to update the token and the user is okay, return true\n    return true\n})\n\n// Configure only the routes that require authentication\nexport const config = {\n    matcher: '/admin/:path*'\n}\n```\n\nAnd create two enviroment variables\n\n```env\nAUTH_URL=\"application base url\"\nAUTH_SECRET=\"generated token to encrypt the jwt\"\n```\n\n## 🪄 Using the library\n\n`getSession()` - This server side function returns the user session or null when user is not authenticated\n\n```tsx\nimport { getSession } from '@alpakaslab/nextjs-jwt-auth'\nimport { redirect } from 'next/navigation'\n\nexport default async function Page() {\n    const session = await getSession()\n\n    if (!session) redirect('/')\n\n    return <div>{session.name}</div>\n}\n```\n\n`signIn()` - This client side helper function receives the user credentials as a parameter and call the sign in api route, and return true or false if user is authenticated\n\n```ts\nimport { signIn } from '@alpakaslab/nextjs-jwt-auth'\n\nconst onSubmit = async data => {\n    const authenticated = await signIn({\n        email: data.email,\n        password: data.password\n    })\n\n    if (authenticated.success) {\n        // signIn success logic\n        router.replace('/admin/')\n    } else {\n        // signIn failed logic\n    }\n}\n```\n\n`signOut()` - This client side helper function call the sign out api route and return true or false if user is correctly signout\n\n```tsx\nimport { signOut } from '@alpakaslab/nextjs-jwt-auth'\n\nconst onClick = async () => {\n    const success = await signOut()\n\n    if (success) {\n        // signOut success logic\n        router.replace('/')\n        router.refresh()\n    } else {\n        // signOut failed logic\n    }\n}\n```\n\n## 💎 Typescript\n\nAll functions and methods are type-safe, and if you need to modify the JWT object, just overwrite it with a `.d.ts` file.\n\n```ts\n// nextjs-jwt-auth.d.ts\nimport { JWT, DefaultJWT } from '@alpakaslab/nextjs-jwt-auth'\n\ndeclare module '@alpakaslab/nextjs-jwt-auth' {\n    interface JWT extends DefaultJWT {\n        accessToken: string\n        refreshToken: string\n        experisIn: number\n        role: string\n    }\n}\n```\n","readmeFilename":"README.md"}