{"_id":"@alpharages/authentication","_rev":"4-80563cfa623441c46a9042097c687f85","name":"@alpharages/authentication","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@alpharages/authentication","version":"1.0.0","keywords":["alpharages"],"author":{"name":"khakan.ali@alpharages.com"},"license":"ISC","_id":"@alpharages/authentication@1.0.0","homepage":"https://github.com/Alpharages/authentication#readme","bugs":{"url":"https://github.com/Alpharages/authentication/issues"},"dist":{"shasum":"25957b1d4c0ae0abbf117b70d962532b12192302","tarball":"https://registry.npmjs.org/@alpharages/authentication/-/authentication-1.0.0.tgz","fileCount":17,"integrity":"sha512-g/1qlMpIJsufFTcbqggWHtYKZHRpLO/C+NGIHe+NvM9qirZqFTY8i6uCln/0Dbl+q22n7mO4xflqw9uPCGJEBQ==","signatures":[{"sig":"MEUCIG9u3f3TgCj9fmT3StV3QAmKK3JGFRZrecJjV8j3r9GIAiEA6Qzm+ZsrQAVJ5sdY+iLF5vm69c7Df0RylcrNJMooMh0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10519},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"gitHead":"4857f4f1080c7fe0ff567a58117ef27b997063ab","scripts":{"lint":"eslint src/**/*.ts","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist & tsc -p tsconfig.json","format":"prettier --write 'src/**/*.{ts,json}'","lint:fix":"eslint --fix src/**/*.ts","typescript":"tsc","check-types":"tsc --noEmit --pretty"},"_npmUser":{"name":"alpharagesadmin","email":"info@alpharages.com"},"repository":{"url":"git+https://github.com/Alpharages/authentication.git","type":"git"},"_npmVersion":"10.2.3","description":"Authentication module designed to work within a microservice architecture","directories":{},"_nodeVersion":"20.10.0","dependencies":{"axios":"^1.7.2"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","eslint":"^9.3.0","globals":"^15.3.0","prettier":"^3.2.5","@eslint/js":"^9.3.0","typescript":"^5.4.5","@types/node":"^20.14.6","lint-staged":"^15.2.7","typescript-eslint":"^7.11.0","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.11.0","@typescript-eslint/eslint-plugin":"^7.11.0"},"_npmOperationalInternal":{"tmp":"tmp/authentication_1.0.0_1718900614813_0.02704947308902339","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@alpharages/authentication","version":"1.0.1","keywords":["alpharages"],"author":{"name":"khakan.ali@alpharages.com"},"license":"ISC","_id":"@alpharages/authentication@1.0.1","homepage":"https://github.com/Alpharages/authentication#readme","bugs":{"url":"https://github.com/Alpharages/authentication/issues"},"dist":{"shasum":"72f18a5361b4435e5c4de990c10f297f6a579f74","tarball":"https://registry.npmjs.org/@alpharages/authentication/-/authentication-1.0.1.tgz","fileCount":17,"integrity":"sha512-Z+6RwFkZCKizSYjZ2mtZlh0FT6ZoXM0xGM1ElSmiK52P+M+07NN0EfDZfiGLB8968E/rLjn/3I19mqJ+IVscgg==","signatures":[{"sig":"MEUCIC/hoVR/C51F6zvjyNRDF27FtufccUYqBNg2T5EruDPdAiEAubFZbKC2dacJfegJ6MZ6wOOEQ8nTKQI3kr82sWtMlog=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10923},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"gitHead":"30cec7af7a1f1ce33c266832565c508c707fbf9d","scripts":{"lint":"eslint src/**/*.ts","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist & tsc -p tsconfig.json","format":"prettier --write 'src/**/*.{ts,json}'","lint:fix":"eslint --fix src/**/*.ts","typescript":"tsc","check-types":"tsc --noEmit --pretty"},"_npmUser":{"name":"alpharagesadmin","email":"info@alpharages.com"},"repository":{"url":"git+https://github.com/Alpharages/authentication.git","type":"git"},"_npmVersion":"10.2.3","description":"Authentication module designed to work within a microservice architecture","directories":{},"_nodeVersion":"20.10.0","dependencies":{"axios":"^1.7.2"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","eslint":"^9.3.0","globals":"^15.3.0","prettier":"^3.2.5","@eslint/js":"^9.3.0","typescript":"^5.4.5","@types/node":"^20.14.6","lint-staged":"^15.2.7","typescript-eslint":"^7.11.0","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.11.0","@typescript-eslint/eslint-plugin":"^7.11.0"},"_npmOperationalInternal":{"tmp":"tmp/authentication_1.0.1_1718918062745_0.9532460877782332","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@alpharages/authentication","version":"1.0.2","keywords":["alpharages"],"author":{"name":"khakan.ali@alpharages.com"},"license":"ISC","_id":"@alpharages/authentication@1.0.2","maintainers":[{"name":"alpharagesadmin","email":"info@alpharages.com"}],"homepage":"https://github.com/Alpharages/authentication#readme","bugs":{"url":"https://github.com/Alpharages/authentication/issues"},"dist":{"shasum":"7d75c7c774b8c6e4302a30805c390d9adc6ae2f6","tarball":"https://registry.npmjs.org/@alpharages/authentication/-/authentication-1.0.2.tgz","fileCount":17,"integrity":"sha512-f6m8WFywxWNBcOnxNSQyJOuunmqEINIlh1A+VPlQ8QPd7AyLkhzd9R8iPnSFAfPHUDX4TJP7rsOEpooi4G2gag==","signatures":[{"sig":"MEUCIBVfTZMwSl7wAmSERS7pX5BtoETOvsZrLz9sug6BCTWRAiEAkJTaqS8g5zoHAeGkbTj3GKEF09Ga4RO7XtEY+IEu/PE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10923},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"gitHead":"e9ac8eab3944d25f34c173b0c9d88c4eeeb5edb1","scripts":{"lint":"eslint src/**/*.ts","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist & tsc -p tsconfig.json","format":"prettier --write 'src/**/*.{ts,json}'","lint:fix":"eslint --fix src/**/*.ts","typescript":"tsc","check-types":"tsc --noEmit --pretty"},"_npmUser":{"name":"alpharagesadmin","email":"info@alpharages.com"},"repository":{"url":"git+https://github.com/Alpharages/authentication.git","type":"git"},"_npmVersion":"10.1.0","description":"Authentication module designed to work within a microservice architecture","directories":{},"_nodeVersion":"18.17.1","dependencies":{"axios":"^1.7.2"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","eslint":"^9.3.0","globals":"^15.3.0","prettier":"^3.2.5","@eslint/js":"^9.3.0","typescript":"^5.4.5","@types/node":"^20.14.6","lint-staged":"^15.2.7","typescript-eslint":"^7.11.0","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.11.0","@typescript-eslint/eslint-plugin":"^7.11.0"},"_npmOperationalInternal":{"tmp":"tmp/authentication_1.0.2_1729616198977_0.22620305222287307","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@alpharages/authentication","version":"1.0.3","keywords":["alpharages"],"author":{"name":"khakan.ali@alpharages.com"},"license":"ISC","_id":"@alpharages/authentication@1.0.3","maintainers":[{"name":"alpharagesadmin","email":"info@alpharages.com"}],"homepage":"https://github.com/Alpharages/authentication#readme","bugs":{"url":"https://github.com/Alpharages/authentication/issues"},"dist":{"shasum":"09b2dba9b42ed6831396b69499fc5daa72a1ba65","tarball":"https://registry.npmjs.org/@alpharages/authentication/-/authentication-1.0.3.tgz","fileCount":17,"integrity":"sha512-fiGlrGpNZj+xa0R4OCCFfL/HM4AGUlcgroKgxwTM/iCvzeKwcEPDRSoBnNIuY/RcJGOwzpKYkOjIazjaP3pqTA==","signatures":[{"sig":"MEUCIBl2lgsJyXQnq9PiFgSgkRSaQOq8lmXqvMj7UcC1h21hAiEAlVdBIVbqyKDjCOBp/L1nNAEczl5YuBjyKU0sfX91LI8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13385},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"gitHead":"e9ac8eab3944d25f34c173b0c9d88c4eeeb5edb1","scripts":{"lint":"eslint src/**/*.ts","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist & tsc -p tsconfig.json","format":"prettier --write 'src/**/*.{ts,json}'","lint:fix":"eslint --fix src/**/*.ts","typescript":"tsc","check-types":"tsc --noEmit --pretty"},"_npmUser":{"name":"alpharagesadmin","email":"info@alpharages.com"},"repository":{"url":"git+https://github.com/Alpharages/authentication.git","type":"git"},"_npmVersion":"10.8.3","description":"Authentication module designed to work within a microservice architecture","directories":{},"_nodeVersion":"22.9.0","dependencies":{"axios":"^1.7.2"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","eslint":"^9.3.0","globals":"^15.3.0","prettier":"^3.2.5","@eslint/js":"^9.3.0","typescript":"^5.4.5","@types/node":"^20.14.6","lint-staged":"^15.2.7","typescript-eslint":"^7.11.0","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.11.0","@typescript-eslint/eslint-plugin":"^7.11.0"},"_npmOperationalInternal":{"tmp":"tmp/authentication_1.0.3_1729616273022_0.6456337522313227","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@alpharages/authentication","version":"1.0.4","description":"Authentication module designed to work within a microservice architecture","main":"dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf dist & tsc -p tsconfig.json","check-types":"tsc --noEmit --pretty","format":"prettier --write 'src/**/*.{ts,json}'","lint":"eslint src/**/*.ts","lint:fix":"eslint --fix src/**/*.ts","test":"echo \"Error: no test specified\" && exit 1","typescript":"tsc"},"keywords":["alpharages"],"author":{"name":"khakan.ali@alpharages.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Alpharages/authentication.git"},"bugs":{"url":"https://github.com/Alpharages/authentication/issues"},"homepage":"https://github.com/Alpharages/authentication#readme","dependencies":{"axios":"^1.7.2"},"devDependencies":{"@eslint/js":"^9.3.0","@types/node":"^20.14.6","@typescript-eslint/eslint-plugin":"^7.11.0","@typescript-eslint/parser":"^7.11.0","eslint":"^9.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.29.1","eslint-plugin-prettier":"^5.1.3","globals":"^15.3.0","husky":"^9.0.11","lint-staged":"^15.2.7","prettier":"^3.2.5","typescript":"^5.4.5","typescript-eslint":"^7.11.0"},"engineStrict":true,"engines":{"node":">=20"},"_id":"@alpharages/authentication@1.0.4","gitHead":"e9ac8eab3944d25f34c173b0c9d88c4eeeb5edb1","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-1LatUk3yYa4OAzUHHuImXxgZmcsQV2y6Rt+Ox13OM/tLK1wvY5jeKf9qLCtjXS4fhblS028t1Ub+ogk2TijCCg==","shasum":"1959511f3da6e5d2dc19099e9b80ecdd3747694e","tarball":"https://registry.npmjs.org/@alpharages/authentication/-/authentication-1.0.4.tgz","fileCount":17,"unpackedSize":15468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQrecWvPTSHWzOrZYX+g73joGG5evcdhjnLjr9ZJrYEAIhAJVLCBzzZS2qGgXu9PMP0l7k73ZPFb6SIs2nwSnN992J"}]},"_npmUser":{"name":"alpharagesadmin","email":"info@alpharages.com"},"directories":{},"maintainers":[{"name":"alpharagesadmin","email":"info@alpharages.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authentication_1.0.4_1729682172697_0.0673061511896429"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-20T16:23:34.690Z","modified":"2024-10-23T11:16:13.060Z","1.0.0":"2024-06-20T16:23:35.015Z","1.0.1":"2024-06-20T21:14:22.933Z","1.0.2":"2024-10-22T16:56:39.180Z","1.0.3":"2024-10-22T16:57:53.245Z","1.0.4":"2024-10-23T11:16:12.869Z"},"bugs":{"url":"https://github.com/Alpharages/authentication/issues"},"author":{"name":"khakan.ali@alpharages.com"},"license":"ISC","homepage":"https://github.com/Alpharages/authentication#readme","keywords":["alpharages"],"repository":{"type":"git","url":"git+https://github.com/Alpharages/authentication.git"},"description":"Authentication module designed to work within a microservice architecture","maintainers":[{"name":"alpharagesadmin","email":"info@alpharages.com"}],"readme":"\n# Authentication\n\nThis repository contains the authentication module designed to work within a microservice architecture built using NestJS. It provides methods for obtaining JWT (JSON Web Token) authentication tokens and verifying their validity. The module facilitates secure communication and token management, ensuring seamless integration with other microservices.\n\n## Features\n\n- Generate JWT authentication tokens\n- Verify the validity of JWT tokens\n- Seamless integration with NestJS microservice architecture\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Generate Token](#generate-token)\n  - [Verify Token](#verify-token)\n- [Configuration](#configuration)\n- [License](#license)\n- [Company Information](#company-information)\n- [Developer](#developer)\n\n## Getting Started\n\nTo get started with this module, clone the repository and follow the setup instructions below.\n\n## Installation\n\n1. **Clone the repository:**\n\n   \\`\\`\\`sh\n   git clone https://github.com/your-username/authentication.git\n   cd authentication\n   \\`\\`\\`\n\n2. **Install dependencies:**\n\n   \\`\\`\\`sh\n   npm install\n   \\`\\`\\`\n\n3. **Set up environment variables:**\n\n   Create a \\`.env\\` file in the root directory and add your environment variables. Refer to the \\`.env.example\\` file for required variables.\n\n## Usage\n\n### Generate Token\n\nTo generate a JWT token, use the \\`generateToken\\` method. Here's an example:\n\n\\`\\`\\`typescript\nimport { AuthService } from './auth/auth.service';\n\nconst authService = new AuthService();\nconst token = authService.generateToken({ userId: 123, username: 'exampleUser' });\nconsole.log(token);\n\\`\\`\\`\n\n### Verify Token\n\nTo verify the validity of a JWT token, use the \\`verifyToken\\` method. Here's an example:\n\n\\`\\`\\`typescript\nimport { AuthService } from './auth/auth.service';\n\nconst authService = new AuthService();\nconst isValid = authService.verifyToken(token);\nconsole.log(isValid);\n\\`\\`\\`\n\n## Configuration\n\nConfigure your environment variables in the \\`.env\\` file. The following variables are required:\n\n- \\`JWT_SECRET\\` - Secret key used for signing JWT tokens\n- \\`JWT_EXPIRATION\\` - Token expiration time (e.g., '1h' for 1 hour)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Company Information\n\n**AlphaRages**  \nA product engineering and digital transformation company based in Bengaluru, specializing in delivering custom software solutions and data-driven insights.\n\n## Developer\n\n**Khakan Ali**  \nDirector and Chief Technical Officer | Full Stack Engineer Lead  \n[Khakan Ali](mailto:khakan.ali@alpharages.com)\n","readmeFilename":"README.md"}