{"_id":"@an1mal/azure-easy-auth-helper","_rev":"1-9c8114cdbac87665e4ea186167e3859e","name":"@an1mal/azure-easy-auth-helper","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@an1mal/azure-easy-auth-helper","version":"1.0.0","description":"Helpers for Azure Easy Auth auth","scripts":{"clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs","build:cjs":"tsc -p ./configs/tsconfig.cjs.json","prepack":"pinst --disable && npm run build","postpack":"pinst --enable","test":"vitest --watch false","test:ui":"vitest --watch true --ui","test:watch":"vitest --watch true","lint":"prettier --ignore-path .prettierignore --check . && eslint --ignore-path .prettierignore .","format":"prettier --ignore-path .prettierignore --write .","prepare":"husky install && chmod ug+x .husky/*"},"repository":{"type":"git","url":"git+ssh://git@github.com/AnimalMother83/azure-easy-auth-helper.git"},"keywords":["azure","easy auth"],"author":{"name":"Mikael P"},"license":"MIT","bugs":{"url":"https://github.com/AnimalMother83/azure-easy-auth-helper/issues"},"homepage":"https://github.com/AnimalMother83/azure-easy-auth-helper#readme","devDependencies":{"@commitlint/cli":"^17.3.0","@commitlint/config-conventional":"^17.3.0","@types/node":"^18.11.9","@typescript-eslint/eslint-plugin":"^5.44.0","@vitest/ui":"^0.25.3","del-cli":"^5.0.0","eslint":"^8.28.0","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.26.0","eslint-plugin-n":"^15.5.1","eslint-plugin-promise":"^6.1.1","git-commit-msg-linter":"^4.4.0","husky":"^8.0.0","lint-staged":"^13.0.4","pinst":"^3.0.0","prettier":"^2.8.0","typescript":"^4.9.3","vitest":"^0.25.3","vitest-fetch-mock":"^0.2.1"},"engines":{"node":">=16"},"lint-staged":{"*":["prettier --write --ignore-unknown"],"*.{js,ts,json}":["eslint --fix"]},"exports":{".":{"import":{"types":"./lib/esm/types/index.d.ts","default":"./lib/esm/index.mjs"},"require":{"types":"./lib/cjs/types/index.d.ts","default":"./lib/cjs/index.js"}}},"types":"./lib/cjs/types/index.d.ts","main":"./lib/cjs/index.js","gitHead":"f27e875485c265d93cc5272825130f5758f3fe3e","_id":"@an1mal/azure-easy-auth-helper@1.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-RNgTTaAV1ZyTPT0wI/+EdHyJbHDP1wSWjgGIEv+WWcLPDIm3RkzZyf996lXaHbWuTUCzSyADhjdDFLNtYcxISQ==","shasum":"60622840e99a846b14ea4276777bda6457ee57e2","tarball":"https://registry.npmjs.org/@an1mal/azure-easy-auth-helper/-/azure-easy-auth-helper-1.0.0.tgz","fileCount":16,"unpackedSize":12614,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCY9w0JCU2t3fdiy99WgTTNhfDM5j8Mus5agEMR6i0QAiEA1mDoPjZt9Fb7BD/4tFlBDqzxrl5c83+cTcWIvljjFao="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjh4PtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLmw/+NobUWpB2pufqJCxJNpfwWBo/J/ENRQ436RXPC+6dlZlAEd50\r\nyr8Dn5KpR3ox368uzwZhesZ9EyIlwsK6LGcVqZKEfoeV8zZUHscfr1xldSHC\r\nIbRrLbxZDRD2A43YhBY1X6rStjTje24nzr+8wxnIegAKHZf65ASBAFJGGhco\r\neGzNqVOW4ODD2C1mlfj979lP4QJo54eupbScpgbb5LkWwrc06WQJFQ5HNu3F\r\nMvkLxOVyS37jx8McNM4wBY+x/ipgz7X9v+G0rRwPy5U3Axc2ZfTDi0tuUlf6\r\nJ9Gqz9JpKTR/PIoo1toe26w/v0oxQ2wNEKe/PTfZ2TJjZJohYAugfNhE2z56\r\nUiuQtLvprS9MBd+JhMgcIkPyLzoO05HkWdDJcvJ9gasz0/bV5WravlkZPap6\r\nPmN+ypr8Tva1V+cRouQOv9QXmNWEAWBnaP3wqHPrcB66jXBTQP6S3nHDg8Bu\r\nFO/BAbLtVQ6g6pPGo62G1N+sqAt9JU4hFKtxTJFkclfMY2HLCVUilBeC2eNt\r\nvDpa+I4PWKuY/VLP7xeWHG3WoYaS2jqvkg4c+CMv+GPhZCyrujViIdCB4tB6\r\n8aTmVxojUjXyAK3FnXyctba+4KGVLQCEPzQx6TEFol6EMj+q+jjhDpt4XEBy\r\nexBoi9H4z50mfgso++p46k/RJpOufP5UL98=\r\n=zccS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"an1mal","email":"mikael.p83@gmail.com"},"directories":{},"maintainers":[{"name":"an1mal","email":"mikael.p83@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/azure-easy-auth-helper_1.0.0_1669825517074_0.7647848910947572"},"_hasShrinkwrap":false},"1.1.0":{"name":"@an1mal/azure-easy-auth-helper","version":"1.1.0","description":"Helpers for Azure Easy Auth auth","scripts":{"clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs","build:cjs":"tsc -p ./configs/tsconfig.cjs.json","prepack":"pinst --disable && npm run build","postpack":"pinst --enable","test":"vitest --watch false","test:ui":"vitest --watch true --ui","test:watch":"vitest --watch true","lint":"prettier --ignore-path .prettierignore --check . && eslint --ignore-path .prettierignore .","format":"prettier --ignore-path .prettierignore --write .","prepare":"husky install && chmod ug+x .husky/*"},"repository":{"type":"git","url":"git+ssh://git@github.com/AnimalMother83/azure-easy-auth-helper.git"},"keywords":["azure","easy auth"],"author":{"name":"Mikael P"},"license":"MIT","bugs":{"url":"https://github.com/AnimalMother83/azure-easy-auth-helper/issues"},"homepage":"https://github.com/AnimalMother83/azure-easy-auth-helper#readme","devDependencies":{"@commitlint/cli":"^17.3.0","@commitlint/config-conventional":"^17.3.0","@types/node":"^18.11.9","@typescript-eslint/eslint-plugin":"^5.44.0","@vitest/ui":"^0.25.3","del-cli":"^5.0.0","eslint":"^8.28.0","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.26.0","eslint-plugin-n":"^15.5.1","eslint-plugin-promise":"^6.1.1","git-commit-msg-linter":"^4.4.0","husky":"^8.0.0","lint-staged":"^13.0.4","pinst":"^3.0.0","prettier":"^2.8.0","typescript":"^4.9.3","vitest":"^0.25.3","vitest-fetch-mock":"^0.2.1"},"engines":{"node":">=16"},"lint-staged":{"*":["prettier --write --ignore-unknown"],"*.{js,ts,json}":["eslint --fix"]},"exports":{".":{"import":{"types":"./lib/esm/types/index.d.ts","default":"./lib/esm/index.mjs"},"require":{"types":"./lib/cjs/types/index.d.ts","default":"./lib/cjs/index.js"}}},"types":"./lib/cjs/types/index.d.ts","main":"./lib/cjs/index.js","gitHead":"2778664efccdfe68024a1b103282a2e6d422d5fe","_id":"@an1mal/azure-easy-auth-helper@1.1.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-hC3DA3XtorbD0tiUBDgDXXqwPP6jsRKInuQL/b9l34rGj6y2ynDz0Ci8W6MIwrYYv6+O4rVGFS/GK6znO83xxA==","shasum":"f1031663b51786fd955e495ca2022c5301997dc1","tarball":"https://registry.npmjs.org/@an1mal/azure-easy-auth-helper/-/azure-easy-auth-helper-1.1.0.tgz","fileCount":10,"unpackedSize":14489,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPtpS12NAu5E6FCinULBdXjEYt/v9QmAVQG6q4c7JGwAiEA9+evSAo4+v9gr22Y2/Zij4HgX/nwCErLNNlQoRA0agw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiLwaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwIQ/+J6VPUYYa9SqCvAFpz1vzaJBOsjOw3OybSZdt+99Euk8STtoy\r\n5OcwMWlplQos8WUTPW2zpOrpvqkacPF4qbT939cWvNqcvL8cBsfqDu/xZphG\r\ngQxn2JwNFE0xhdHQFWTkap0E8HFzMpr8zc9tCgSvIhFC0WyNbAZQuArkKyf0\r\nYI/zsRYdwXwHuNsVKvCGFhLcMBkloZsJOVYe4ob05eItEHxLLwFJqIZcM6ou\r\nW5s7Fu5672Ve99arp49onI+O+ZZwY5NqFN03nyqZipUvlGB6/Rg+PfADvSTG\r\nZnaiSfWEyvOZElEg90+txppSHJfavRYi0cE9lIHMfzZvnFwbaK5kFIzsSLv+\r\nOFkcrGxCQP73+NXdKJIQYmYCYpdgDBnKHCpU1sYg8JdScp/BkYUR8QwEPuDe\r\nbdMb2JP8logHmU8L00O4RgT067CwM0/HUG7mFlpBYrBzGMa2BrngsI0y/8O4\r\ng7psgglMLce2eGe+qzs/cmaM6VkXPiiYEyKT18MOPxay2TrF/oihZpgHMeOO\r\nurh3iWks/jn4AUkjAfiB9z37ko68YhYwGBWUf35C/bnOlGnzrQRkxPyI+g1u\r\npJCB+7HDUc9zj938RR/VAQ2SmrxDoAwFwTQQCREjNwqplEHIqG7uu6TZwNdP\r\nc3CnJ2XYhLFd9gzOvEQ57Hh8TtIGg8vEfIE=\r\n=lwhk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"an1mal","email":"mikael.p83@gmail.com"},"directories":{},"maintainers":[{"name":"an1mal","email":"mikael.p83@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/azure-easy-auth-helper_1.1.0_1669905433987_0.6914623385614418"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-30T16:25:16.815Z","1.0.0":"2022-11-30T16:25:17.236Z","modified":"2022-12-01T14:37:14.202Z","1.1.0":"2022-12-01T14:37:14.122Z"},"maintainers":[{"name":"an1mal","email":"mikael.p83@gmail.com"}],"description":"Helpers for Azure Easy Auth auth","homepage":"https://github.com/AnimalMother83/azure-easy-auth-helper#readme","keywords":["azure","easy auth"],"repository":{"type":"git","url":"git+ssh://git@github.com/AnimalMother83/azure-easy-auth-helper.git"},"author":{"name":"Mikael P"},"bugs":{"url":"https://github.com/AnimalMother83/azure-easy-auth-helper/issues"},"license":"MIT","readme":"<h1 align=\"center\">Azure Easy Auth helpers</h1>\n\nHelper functions for Azure App Service built-in authentication and authorization (\"Easy Auth\").\n\nRead more: https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization\n\n## Getting Started\n\nInstall package using npm\n\n```\nnpm install @an1mal/azure-easy-auth-helper\n```\n\nor yarn\n\n```\nyarn add @an1mal/azure-easy-auth-helper\n```\n\n### Usage\n\n```js\nimport { getAuthMe } from '@an1mal/azure-easy-auth-helper';\n\nconst base_url = 'https://your-azure-app.azurewebsites.net';\nconst user = getAuthMe(base_url);\n```\n\nRunning in local environment or tests\n\n```js\nmock_user = true;\nconst user = getAuthMe(base_url, mock_user);\n```\n\n**NOTE:** Only works on client-side.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}