{"_id":"@bryancm/nestjs-jwt","_rev":"1-a6695addd6ce251e6f73d32ffbbcc4be","name":"@bryancm/nestjs-jwt","description":"This is a library made for your projects so that you can have a several functions that you can use to implement the Bearer Authentication.","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@bryancm/nestjs-jwt","version":"1.0.0","keywords":["nest","nestjs","package","development","jwt","json","token"],"author":{"name":"Bryan Carrera","email":"bc00932@gmail.com"},"license":"MIT","_id":"@bryancm/nestjs-jwt@1.0.0","maintainers":[{"name":"bryancm","email":"bc00932@gmail.com"}],"bugs":{"url":"https://github.com/BryanCarrera37/NestJS-JWT/issues"},"dist":{"shasum":"727f8c327b57f0c93d124e473dc9ad15f6c9089f","tarball":"https://registry.npmjs.org/@bryancm/nestjs-jwt/-/nestjs-jwt-1.0.0.tgz","fileCount":28,"integrity":"sha512-LRZKQB4lHhOO4ulyZVo+Wf1Rrp1aeWYtdWSpxu2Zt7rD5SXCWUpFa5rqy58FUU3NwqaOrd8pfSCuVin/reVW/w==","signatures":[{"sig":"MEYCIQC35R2O4rZ6/CWH5Jto1rH9/Vgzr4ne46UtZs43di5QXgIhAMVt1IgIc6LUmHDs/RuBRwoj32TZcZZwTwxWT9ILqyaB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65424},"main":"index.js","scripts":{"build":"rm -rf dist && tsc && npm run copy:files","publish":"cd dist/ && yarn publish","tsc:init":"tsc --init","copy:files":"cp ./LICENSE ./dist/ && cp ./README.md ./dist/ && cp ./package.json ./dist/"},"_npmUser":{"name":"bryancm","email":"bc00932@gmail.com"},"repository":{"url":"https://github.com/BryanCarrera37/NestJS-JWT","type":"git"},"description":"This is a library that can be used in your projects to implement actions for JWT. You will be able to generate tokens quickly, also you can extract the payload from it with a single line","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2024 Bryan Ant. Carrera\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"express":"^4.19.2","@nestjs/jwt":"^10.2.0","@nestjs/core":"^10.3.8","@nestjs/common":"^10.3.8"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5","@types/express":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-jwt_1.0.0_1716954116495_0.0019407244924809497","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@bryancm/nestjs-jwt","version":"1.1.0","description":"This is a library made for your projects so that you can have a several functions that you can use to implement the Bearer Authentication.","main":"index.js","scripts":{"tsc:init":"tsc --init","copy:files":"cp ./LICENSE ./dist/ && cp ./README.md ./dist/ && cp ./package.json ./dist/","build":"rm -rf dist && tsc && npm run copy:files","publish":"cd dist/ && yarn publish --access public"},"keywords":["nest","nestjs","package","development","jwt","json","token","bearer"],"repository":{"type":"git","url":"https://github.com/BryanCarrera37/NestJS-JWT"},"bugs":{"url":"https://github.com/BryanCarrera37/NestJS-JWT/issues"},"author":{"name":"Bryan Carrera","email":"bc00932@gmail.com"},"license":"MIT","dependencies":{"@nestjs/common":"^10.3.8","@nestjs/core":"^10.3.8","@nestjs/jwt":"^10.2.0","express":"^4.19.2"},"devDependencies":{"@types/express":"^4.17.21","typescript":"^5.4.5"},"licenseText":"MIT License\n\nCopyright (c) 2024 Bryan Ant. Carrera\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@bryancm/nestjs-jwt@1.1.0","dist":{"shasum":"3a71dc8d6097941793081d69af77728631385cb6","integrity":"sha512-+sOaDAqlJscvUCWXjdDbOyCoeYD9eZcarFEnuuzfIJlMvoPinKLn6N2rO0dPJGIzAzFM4TCcskeTeiyQM4yMVw==","tarball":"https://registry.npmjs.org/@bryancm/nestjs-jwt/-/nestjs-jwt-1.1.0.tgz","fileCount":28,"unpackedSize":66178,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFexLpxbm4LLEPxXFkc+HrkfVPG2UwBphVbHzzr0tcPMAiEArfAGALqqYW2ezPBwIVg0BlARIOPS63CDJSL9Sy96Zxg="}]},"_npmUser":{"name":"bryancm","email":"bc00932@gmail.com"},"directories":{},"maintainers":[{"name":"bryancm","email":"bc00932@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-jwt_1.1.0_1717385201127_0.17708056300069908"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-29T03:41:56.365Z","modified":"2024-06-03T03:26:41.452Z","1.0.0":"2024-05-29T03:41:56.651Z","1.1.0":"2024-06-03T03:26:41.289Z"},"maintainers":[{"name":"bryancm","email":"bc00932@gmail.com"}],"author":{"name":"Bryan Carrera","email":"bc00932@gmail.com"},"repository":{"type":"git","url":"https://github.com/BryanCarrera37/NestJS-JWT"},"keywords":["nest","nestjs","package","development","jwt","json","token","bearer"],"license":"MIT","bugs":{"url":"https://github.com/BryanCarrera37/NestJS-JWT/issues"},"readme":"# NestJS-JWT\n\nThis is a library made for your projects so that you can have a several functions that you can use to implement the Bearer Authentication.\n\n## Installation\n\nYou can use **npm** or **yarn:**\n\n```bash\n$ npm install @bryancm/nestjs-jwt\n```\n\n```bash\n$ yarn add @bryancm/nestjs-jwt\n```\n\n## Usage\n\nAfter install the package you only have to import the module **TokenizationModule** to your project.\n\n```ts\nimport { TokenizationModule } from '@bryancm/nestjs-jwt';\n\n@Module({\n    imports: [ TokenizationModule ]\n})\nexport class AppModule {}\n```\n\nThen you're free to use **Dependency Injection** for the service **TokenizationService** and implement methods like:\n\n- extractTokenFromTheHeader\n- generateToken\n- getPayloadFromTheToken","readmeFilename":"README.md"}