{"_id":"@authjs-web3-providers/siwe","_rev":"3-9ac0641674c0aa27bb5467565344b5c2","name":"@authjs-web3-providers/siwe","dist-tags":{"latest":"0.5.0"},"versions":{"0.3.0":{"name":"@authjs-web3-providers/siwe","version":"0.3.0","keywords":["auth","web3","ethereum","siwe","next-auth","authentication"],"author":{"name":"palsergech"},"license":"MIT","_id":"@authjs-web3-providers/siwe@0.3.0","maintainers":[{"name":"palsergech","email":"paulpaulych@gmail.com"}],"homepage":"https://github.com/palsergech/authjs-web3-providers#readme","bugs":{"url":"https://github.com/palsergech/authjs-web3-providers/issues"},"dist":{"shasum":"409821369bf178d6c237997b9ee3e3b3973d478e","tarball":"https://registry.npmjs.org/@authjs-web3-providers/siwe/-/siwe-0.3.0.tgz","fileCount":15,"integrity":"sha512-kangqFKmLKRh2httRQYQj2EEcOaOiu6YtCwQtmRjJPk3Ma4R52ecSatgoc5l/DWsOy+fWF+cOIggA1VBEHvDhA==","signatures":[{"sig":"MEUCIQD+BZqkDXZnIWKEKYOi3AfGY5NZHURO5byspytBBGAL5AIgBoDZCLBthznKjAvnDtCwcmBtRArOatmmzXsG2J1oamA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12662},"main":"./dist/index.js","type":"module","_from":"file:authjs-web3-providers-siwe-0.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"docs":"typedoc --out docs src","lint":"eslint src/**/*.ts","test":"jest","build":"tsc -p ."},"_npmUser":{"name":"palsergech","email":"paulpaulych@gmail.com"},"_resolved":"/tmp/6d6dc176e2712e4bbae6dd7c757369c4/authjs-web3-providers-siwe-0.3.0.tgz","_integrity":"sha512-kangqFKmLKRh2httRQYQj2EEcOaOiu6YtCwQtmRjJPk3Ma4R52ecSatgoc5l/DWsOy+fWF+cOIggA1VBEHvDhA==","repository":{"url":"git+https://github.com/palsergech/authjs-web3-providers.git","type":"git"},"_npmVersion":"10.8.2","description":"AuthJS Web3 Providers for Ethereum using SIWE (Sign-In with Ethereum)","directories":{},"_nodeVersion":"20.19.0","dependencies":{"siwe":"^3.0.0","cookie":"^1.0.2","next-auth":"^4.24.11"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typedoc":"^0.24.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@typescript-eslint/parser":"^5.0.0","@typescript-eslint/eslint-plugin":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/siwe_0.3.0_1744187332267_0.5036784999487867","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@authjs-web3-providers/siwe","version":"0.4.1","keywords":["auth","web3","ethereum","siwe","next-auth","authentication"],"author":{"name":"palsergech"},"license":"MIT","_id":"@authjs-web3-providers/siwe@0.4.1","maintainers":[{"name":"palsergech","email":"paulpaulych@gmail.com"}],"homepage":"https://github.com/palsergech/authjs-web3-providers#readme","bugs":{"url":"https://github.com/palsergech/authjs-web3-providers/issues"},"dist":{"shasum":"5698d11f38cf1eb57cfd7d700a106bb494702e74","tarball":"https://registry.npmjs.org/@authjs-web3-providers/siwe/-/siwe-0.4.1.tgz","fileCount":15,"integrity":"sha512-XePgykhD12/k/YnEJOueLu8EIGRAggDlkQ9ZA/TT+T2xEAvhaxHc7+r1oV8UJBUP96qDR0fcWv4h+cewv9uwcA==","signatures":[{"sig":"MEUCIQDG1HWFxmeKS9M/l/p2LqwENNdOfjIAZJ+7CqST99868gIgUhBwRBxIafHMQVlq3EMdCJ2iMIN0OAajXGaD0ke6mag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12662},"main":"./dist/index.js","type":"module","_from":"file:authjs-web3-providers-siwe-0.4.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"docs":"typedoc --out docs src","lint":"eslint src/**/*.ts","test":"jest","build":"tsc -p ."},"_npmUser":{"name":"palsergech","email":"paulpaulych@gmail.com"},"_resolved":"/tmp/799fd27da1c41a149f09f82624868f3b/authjs-web3-providers-siwe-0.4.1.tgz","_integrity":"sha512-XePgykhD12/k/YnEJOueLu8EIGRAggDlkQ9ZA/TT+T2xEAvhaxHc7+r1oV8UJBUP96qDR0fcWv4h+cewv9uwcA==","repository":{"url":"git+https://github.com/palsergech/authjs-web3-providers.git","type":"git"},"_npmVersion":"10.8.2","description":"AuthJS Web3 Providers for Ethereum using SIWE (Sign-In with Ethereum)","directories":{},"_nodeVersion":"20.19.0","dependencies":{"siwe":"^3.0.0","cookie":"^1.0.2","next-auth":"^4.24.11"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typedoc":"^0.24.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@typescript-eslint/parser":"^5.0.0","@typescript-eslint/eslint-plugin":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/siwe_0.4.1_1744187708263_0.6286150983840126","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@authjs-web3-providers/siwe","version":"0.5.0","description":"AuthJS Web3 Providers for Ethereum using SIWE (Sign-In with Ethereum)","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"dependencies":{"next-auth":"^4.24.11","siwe":"^3.0.0","@authjs-web3-providers/core":"0.5.0"},"devDependencies":{"@types/jest":"^29.5.0","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","eslint":"^9.24.0","jest":"^29.0.0","ts-jest":"^29.0.0","typedoc":"^0.24.0","typescript":"^5.0.0"},"keywords":["auth","web3","ethereum","siwe","next-auth","authentication"],"author":{"name":"palsergech"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/palsergech/authjs-web3-providers.git"},"bugs":{"url":"https://github.com/palsergech/authjs-web3-providers/issues"},"homepage":"https://github.com/palsergech/authjs-web3-providers#readme","publishConfig":{"access":"public"},"scripts":{"build":"tsc -p .","test":"jest --passWithNoTests","lint":"eslint src/**/*.ts","watch":"tsc -p . --watch","docs":"typedoc --out docs src"},"_id":"@authjs-web3-providers/siwe@0.5.0","_integrity":"sha512-s68Ig2GHzC2Wln+mgrfXKT2olPTSKl9LrJlmKWioLJHXQv0vgY/COM60Pewru3+UHMZZto3sFQ0Tkfx7hGyKqw==","_resolved":"/tmp/62ffc21c32aba963af0855e204664821/authjs-web3-providers-siwe-0.5.0.tgz","_from":"file:authjs-web3-providers-siwe-0.5.0.tgz","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-s68Ig2GHzC2Wln+mgrfXKT2olPTSKl9LrJlmKWioLJHXQv0vgY/COM60Pewru3+UHMZZto3sFQ0Tkfx7hGyKqw==","shasum":"f4df066a8a927f6f77ebc69f709c194accf2cb6f","tarball":"https://registry.npmjs.org/@authjs-web3-providers/siwe/-/siwe-0.5.0.tgz","fileCount":15,"unpackedSize":10719,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDsPhSW9c+PQNHe9uFJqLsVxLLHyC4MWOEEAaOWOaU4OgIgIPkrODUbxUCxiZsC8CKq2+7OjYFtXxOYhfVpWcoxkHM="}]},"_npmUser":{"name":"palsergech","email":"paulpaulych@gmail.com"},"directories":{},"maintainers":[{"name":"palsergech","email":"paulpaulych@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/siwe_0.5.0_1744303585988_0.046479817809425894"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-09T08:28:52.189Z","modified":"2025-04-10T16:46:26.328Z","0.3.0":"2025-04-09T08:28:52.532Z","0.4.1":"2025-04-09T08:35:08.445Z","0.5.0":"2025-04-10T16:46:26.178Z"},"bugs":{"url":"https://github.com/palsergech/authjs-web3-providers/issues"},"author":{"name":"palsergech"},"license":"MIT","homepage":"https://github.com/palsergech/authjs-web3-providers#readme","keywords":["auth","web3","ethereum","siwe","next-auth","authentication"],"repository":{"type":"git","url":"git+https://github.com/palsergech/authjs-web3-providers.git"},"description":"AuthJS Web3 Providers for Ethereum using SIWE (Sign-In with Ethereum)","maintainers":[{"name":"palsergech","email":"paulpaulych@gmail.com"}],"readme":"# @authjs-web3-providers/siwe\n\n[![npm version](https://badge.fury.io/js/@authjs-web3-providers%2Fsiwe.svg)](https://badge.fury.io/js/@authjs-web3-providers%2Fsiwe)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)\n\nSign-In with Ethereum (SIWE) provider for Auth.js (NextAuth.js).\n\n## Features\n\n- 🔐 Seamless integration with Auth.js\n- 🌐 Web3 authentication using SIWE\n- 📦 TypeScript support\n- 🔄 Automatic session management\n- 🛡️ Secure by default\n\n## Installation\n\n```bash\nnpm install @authjs-web3-providers/siwe\n# or\nyarn add @authjs-web3-providers/siwe\n# or\npnpm add @authjs-web3-providers/siwe\n```\n\n## Quick Start\n\n```typescript\nimport { SiweProvider } from '@authjs-web3-providers/siwe';\nimport { NextAuthOptions } from 'next-auth';\n\nexport const authOptions: NextAuthOptions = {\n  providers: [\n    SiweProvider({\n      // Optional: Customize session cookie\n      sessionCookie: {\n        name: 'custom-session',\n        options: {\n          secure: process.env.NODE_ENV === 'production'\n        }\n      },\n      // Optional: Add database adapter\n      adapter: yourAdapter\n    })\n  ],\n  session: {\n    strategy: 'jwt'\n  }\n};\n```\n\n## Configuration Options\n\n| Option | Type | Description | Default |\n|--------|------|-------------|---------|\n| `sessionCookie` | CookieOption | Customize session cookie settings | Uses NextAuth defaults |\n| `adapter` | Adapter | Database adapter for user persistence | Optional |\n\n## API Reference\n\n### SiweProvider\n\n```typescript\ninterface Web3ProviderOptions {\n  sessionCookie?: CookieOption;\n  adapter?: Adapter;\n}\n\nfunction SiweProvider(options?: Web3ProviderOptions): Provider;\n```\n\n## Examples\n\n### Basic Usage with Default Settings\n\n```typescript\nimport { SiweProvider } from '@authjs-web3-providers/siwe';\nimport { NextAuthOptions } from 'next-auth';\n\nexport const authOptions: NextAuthOptions = {\n  providers: [\n    SiweProvider()\n  ],\n  session: {\n    strategy: 'jwt'\n  }\n};\n```\n\n### With Custom Session Cookie\n\n```typescript\nimport { SiweProvider } from '@authjs-web3-providers/siwe';\nimport { NextAuthOptions } from 'next-auth';\n\nexport const authOptions: NextAuthOptions = {\n  providers: [\n    SiweProvider({\n      sessionCookie: {\n        name: 'custom-session',\n        options: {\n          secure: process.env.NODE_ENV === 'production',\n          sameSite: 'lax'\n        }\n      }\n    })\n  ],\n  session: {\n    strategy: 'jwt'\n  }\n};\n```\n\n## Contributing\n\nContributions are welcome! Please see our [Contributing Guide](../../CONTRIBUTING.md) for details.\n\n## License\n\nThis package is licensed under the MIT License - see the [LICENSE](../../LICENSE) file for details.\n\n## Security\n\nIf you discover any security related issues, please email security@yourdomain.com instead of using the issue tracker.\n\n## Support\n\nFor support, please open an issue in the GitHub repository or contact us at support@yourdomain.com. ","readmeFilename":"README.md"}