{"name":"@azure/core-auth","version":"1.11.0","description":"Provides low-level interfaces and helper methods for authentication in Azure SDK","sdk-type":"client","type":"module","exports":{"./package.json":"./package.json",".":{"browser":{"types":"./dist/browser/index.d.ts","default":"./dist/browser/index.js"},"react-native":{"types":"./dist/react-native/index.d.ts","default":"./dist/react-native/index.js"},"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","browser":"./dist/browser/index.js","react-native":"./dist/react-native/index.js","repository":{"type":"git","url":"git+https://github.com/Azure/azure-sdk-for-js.git","directory":"sdk/core/core-auth"},"keywords":["azure","authentication","cloud"],"author":{"name":"Microsoft Corporation"},"license":"MIT","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"engines":{"node":">=22.0.0"},"homepage":"https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-auth/README.md","sideEffects":false,"dependencies":{"@azure/abort-controller":"^2.1.2","@azure/core-util":"^1.13.0","tslib":"^2.6.2"},"devDependencies":{"@types/node":"^22.0.0","@types/react":"^19.2.14","@vitest/browser-playwright":"^4.1.2","@vitest/coverage-istanbul":"^4.1.2","cross-env":"^10.1.0","eslint":"^9.39.1","playwright":"^1.60.0","prettier":"^3.9.1","react-native":"^0.84.1","rimraf":"^6.1.0","typescript":"~6.0.2","vitest":"^4.1.2","@azure/dev-tool":"^1.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0"},"//metadata":{"migrationDate":"2023-03-08T18:36:03.000Z"},"module":"./dist/esm/index.js","imports":{"#platform/*":{"default":"./src/*.ts"}},"scripts":{"build":"npm run clean && dev-tool run build-package && dev-tool run extract-api","build:samples":"echo Skipped.","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"","clean":"rimraf --glob dist dist-* temp types *.tgz *.log","execute:samples":"echo skipped","extract-api":"dev-tool run build-package && dev-tool run extract-api","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"","lint":"eslint package.json src test","lint:fix":"eslint package.json src test --fix --fix-type [problem,suggestion]","pack":"pnpm pack 2>&1","test":"tsc -b --noEmit && npm run test:node && npm run test:browser","test:browser":"dev-tool run test:vitest --no-test-proxy --browser","test:node":"dev-tool run test:vitest --no-test-proxy","update-snippets":"dev-tool run update-snippets"},"_id":"@azure/core-auth@1.11.0","_integrity":"sha512-IUZydyTUkDnYdstOW9pFOOUQlBjAepK5teihDE3x6yxsPJs/hsAaaYpeGxdxrgtOiJbBKSjKW7MDk7AEhb4LRg==","_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\a549b824-0fec-427e-8e90-b20ef8b2971e\\azure-core-auth-1.11.0.tgz","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\a549b824-0fec-427e-8e90-b20ef8b2971e\\azure-core-auth-1.11.0.tgz","tag":"latest","_nodeVersion":"18.5.0","dist":{"integrity":"sha512-IUZydyTUkDnYdstOW9pFOOUQlBjAepK5teihDE3x6yxsPJs/hsAaaYpeGxdxrgtOiJbBKSjKW7MDk7AEhb4LRg==","shasum":"1daeffdf62d1a871d22b865f9f3164a63ea1f575","tarball":"http://registry-npm.ywwl.com/@azure/core-auth/download/@azure/core-auth-1.11.0.tgz","fileCount":92,"unpackedSize":140676,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICX318c8mqYxGtmQhuDn0UKROplHSSDZoHg/NzlOQGS2AiBonjGIk26j+IkHbHVFHwlVvkRoCyoq+nxIn3mfa2X37Q=="}],"size":14675,"noattachment":false,"key":"/@azure/core-auth/-/@azure/core-auth-1.11.0.tgz"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"directories":{},"maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core-auth_1.11.0_1783969772253_0.00012325380739852676"},"_hasShrinkwrap":false,"readme":"# Azure Core Authentication client library for JavaScript\n\nThe `@azure/core-auth` package provides core interfaces and helper methods for authenticating with Azure services using Azure Active Directory and other authentication schemes common across the Azure SDK. As a \"core\" library, it shouldn't need to be added as a dependency to any user code, only other Azure SDK libraries.\n\n## Getting started\n\n### Installation\n\nInstall this library using npm as follows\n\n```\nnpm install @azure/core-auth\n```\n\n## Key Concepts\n\nThe `TokenCredential` interface represents a credential capable of providing an authentication token. The `@azure/identity` package contains various credentials that implement the `TokenCredential` interface.\n\nThe `AzureKeyCredential` is a static key-based credential that supports key rotation via the `update` method. Use this when a single secret value is needed for authentication, e.g. when using a shared access key.\n\nThe `AzureNamedKeyCredential` is a static name/key-based credential that supports name and key rotation via the `update` method. Use this when both a secret value and a label are needed, e.g. when using a shared access key and shared access key name.\n\nThe `AzureSASCredential` is a static signature-based credential that supports updating the signature value via the `update` method. Use this when using a shared access signature.\n\n## Examples\n\n### AzureKeyCredential\n\n```ts snippet:ReadmeSampleAzureKeyCredential\nimport { AzureKeyCredential } from \"@azure/core-auth\";\n\nconst credential = new AzureKeyCredential(\"secret value\");\n\nconsole.log(credential.key); // prints: \"secret value\"\n\ncredential.update(\"other secret value\");\n\nconsole.log(credential.key); // prints: \"other secret value\"\n```\n\n### AzureNamedKeyCredential\n\n```ts snippet:ReadmeSampleAzureNamedCredential\nimport { AzureNamedKeyCredential } from \"@azure/core-auth\";\n\nconst credential = new AzureNamedKeyCredential(\"ManagedPolicy\", \"secret value\");\n\nconsole.log(`${credential.name}, ${credential.key}`); // prints: \"ManagedPolicy, secret value\"\n\ncredential.update(\"OtherManagedPolicy\", \"other secret value\");\n\nconsole.log(`${credential.name}, ${credential.key}`); // prints: \"OtherManagedPolicy, other secret value\"\n```\n\n### AzureSASCredential\n\n```ts snippet:ReadmeSampleSASCredential\nimport { AzureSASCredential } from \"@azure/core-auth\";\n\nconst credential = new AzureSASCredential(\"signature1\");\n\nconsole.log(credential.signature); // prints: \"signature1\"\n\ncredential.update(\"signature2\");\n\nconsole.log(credential.signature); // prints: \"signature2\"\n```\n\n## Next steps\n\nYou can build and run the tests locally by executing `npm run test`. Explore the `test` folder to see advanced usage and behavior of the public classes.\n\n## Troubleshooting\n\nIf you run into issues while using this library, please feel free to [file an issue](https://github.com/Azure/azure-sdk-for-js/issues/new).\n\n## Contributing\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","publish_time":1783969772390,"_cnpm_publish_time":1783969772390,"dist-tags":{"dev":"1.10.2-alpha.20260305.6","latest":"1.11.0"}}