@azure/core-auth
Advanced tools
Comparing version 1.5.1-alpha.20240108.2 to 1.5.1-alpha.20240117.1
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
export { AzureKeyCredential } from "./azureKeyCredential"; | ||
export { isKeyCredential } from "./keyCredential"; | ||
export { AzureNamedKeyCredential, isNamedKeyCredential, } from "./azureNamedKeyCredential"; | ||
@@ -5,0 +6,0 @@ export { AzureSASCredential, isSASCredential } from "./azureSASCredential"; |
@@ -48,2 +48,13 @@ 'use strict'; | ||
/** | ||
* Tests an object to determine whether it implements KeyCredential. | ||
* | ||
* @param credential - The assumed KeyCredential to be tested. | ||
*/ | ||
function isKeyCredential(credential) { | ||
return coreUtil.isObjectWithProperties(credential, ["key"]) && typeof credential.key === "string"; | ||
} | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
/** | ||
* A static name/key-based credential that supports updating | ||
@@ -178,2 +189,3 @@ * the underlying name and key values. | ||
exports.AzureSASCredential = AzureSASCredential; | ||
exports.isKeyCredential = isKeyCredential; | ||
exports.isNamedKeyCredential = isNamedKeyCredential; | ||
@@ -180,0 +192,0 @@ exports.isSASCredential = isSASCredential; |
{ | ||
"name": "@azure/core-auth", | ||
"version": "1.5.1-alpha.20240108.2", | ||
"version": "1.5.1-alpha.20240117.1", | ||
"description": "Provides low-level interfaces and helper methods for authentication in Azure SDK", | ||
@@ -5,0 +5,0 @@ "sdk-type": "client", |
@@ -149,2 +149,9 @@ import { AbortSignalLike } from '@azure/abort-controller'; | ||
/** | ||
* Tests an object to determine whether it implements KeyCredential. | ||
* | ||
* @param credential - The assumed KeyCredential to be tested. | ||
*/ | ||
export declare function isKeyCredential(credential: unknown): credential is KeyCredential; | ||
/** | ||
* Tests an object to determine whether it implements NamedKeyCredential. | ||
@@ -151,0 +158,0 @@ * |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53526
20
609