{"_id":"@ef09fe/next-auth-steam","name":"@ef09fe/next-auth-steam","dist-tags":{"latest":"0.4.1"},"versions":{"0.4.1":{"name":"@ef09fe/next-auth-steam","license":"Unlicense","version":"0.4.1","description":"Steam authentication provider for NextAuth.js","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Nekonyx/next-auth-steam.git"},"dependencies":{"openid":"^2.0.12"},"peerDependencies":{"next":"^13.3.4 || ^14 || ^15","next-auth":"^4","openid-client":"^5"},"devDependencies":{"@biomejs/biome":"^1.9.4","@types/node":"^18.19.26","@types/openid":"^2","next":"^15","next-auth":"^4","openid-client":"^5","typescript":"^5.7.2"},"scripts":{"build":"tsc","watch":"tsc -w","lint":"biome lint src","format":"biome format --write src","format:examples":"biome format --write examples"},"bugs":{"url":"https://github.com/Nekonyx/next-auth-steam/issues"},"homepage":"https://github.com/Nekonyx/next-auth-steam#readme","_id":"@ef09fe/next-auth-steam@0.4.1","_integrity":"sha512-uCYBruKXxdzlU9Jn9GK7d8eD/gheuFHS9qquoRjw7LNVaG7y6LU8dgR5OXxOP3sssLJam1rmNtGcNFU2fHPgEQ==","_resolved":"/private/var/folders/gc/0yzd3jrd5d5cy54w6_wrn1240000gn/T/b3edac51e0734f5060a1d4877a0a6187/ef09fe-next-auth-steam-0.4.1.tgz","_from":"file:ef09fe-next-auth-steam-0.4.1.tgz","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-uCYBruKXxdzlU9Jn9GK7d8eD/gheuFHS9qquoRjw7LNVaG7y6LU8dgR5OXxOP3sssLJam1rmNtGcNFU2fHPgEQ==","shasum":"28ea34f9eb64da0c7ad444fe3c47a9643b2e7f30","tarball":"https://registry.npmjs.org/@ef09fe/next-auth-steam/-/next-auth-steam-0.4.1.tgz","fileCount":11,"unpackedSize":17335,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDvaDCZjqoOihN7agSHGydp0FaLHFIqxn/3BrIKz9FB1gIhALegBW8tC5203mFJjpxgXrP5rnMfKMZh7aHT55mkchX2"}]},"_npmUser":{"name":"ef09fe","email":"ef09fe@gmail.com"},"directories":{},"maintainers":[{"name":"ef09fe","email":"ef09fe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/next-auth-steam_0.4.1_1739372814826_0.6027175044231887"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-12T15:06:54.744Z","0.4.1":"2025-02-12T15:06:55.068Z","modified":"2025-02-12T15:06:55.287Z"},"maintainers":[{"name":"ef09fe","email":"ef09fe@gmail.com"}],"description":"Steam authentication provider for NextAuth.js","homepage":"https://github.com/Nekonyx/next-auth-steam#readme","repository":{"type":"git","url":"git+https://github.com/Nekonyx/next-auth-steam.git"},"bugs":{"url":"https://github.com/Nekonyx/next-auth-steam/issues"},"license":"Unlicense","readme":"# next-auth-steam\n\nSteam authentication provider for [NextAuth.js](https://authjs.dev).\n\n<!-- Support for NextAuth.js 5 isn't implemented at this time -->\n<!-- > [!IMPORTANT] -->\n<!-- > This branch (`master`) contains the module for NextAuth.js v4. [Click here](https://github.com/nekonyx/next-auth-steam/tree/beta) to switch to the `beta` branch with support for NextAuth.js v5. -->\n\n### Install\n\n```\nnpm install next-auth-steam\n```\n\n### Quickstart\n\n1. Create a `.env` file. For configuration details, see: [NextAuth Configuration Options](https://next-auth.js.org/configuration/options).\n\n```dotenv\n# .env\nNEXTAUTH_URL=\nNEXTAUTH_SECRET=\n```\n\n#### Using App Router\n\n```ts\n// app/auth/[...nextauth]/route.ts\nimport NextAuth from 'next-auth'\nimport Steam from 'next-auth-steam'\nimport type { NextRequest } from 'next/server'\n\n// Learn more: https://next-auth.js.org/configuration/initialization#route-handlers-app\nasync function auth(\n  req: NextRequest,\n  ctx: {\n    params: {\n      nextauth: string[]\n    }\n  }\n) {\n  return NextAuth(req, ctx, {\n    providers: [\n      Steam(req, {\n        clientSecret: process.env.STEAM_SECRET!\n      })\n    ]\n  })\n}\n\nexport { auth as GET, auth as POST }\n```\n\n#### Using Pages Router\n\n```ts\n// pages/api/auth/[...nextauth].ts\nimport NextAuth from 'next-auth'\nimport Steam from 'next-auth-steam'\nimport type { NextApiRequest, NextApiResponse } from 'next'\n\n// Learn more: https://next-auth.js.org/configuration/initialization#advanced-initialization\nexport default async function auth(req: NextApiRequest, res: NextApiResponse) {\n  return await NextAuth(req, res, {\n    providers: [\n      Steam(req, {\n        clientSecret: process.env.STEAM_SECRET!\n      })\n    ]\n  })\n}\n```\n\n### Examples\n\n> [!NOTE]\n> Pages Router example uses Next.js 13. App Router example uses the latest version (Next.js 15).\n\nAll examples are located in the [`examples`](https://github.com/nekonyx/next-auth-steam/tree/master/examples) folder. Feel free to open a PR if you'd like to add another example!\n","readmeFilename":"README.md"}