@azure/core-auth 1.9.1-alpha.20250130.1 → 1.9.1-alpha.20250131.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -26,41 +26,44 @@ The `AzureSASCredential` is a static signature-based credential that supports up
26
26
 
27
27
  ### AzureKeyCredential
28
28
 
29
- ```ts snippet:azure_key_credential
29
+ ```ts snippet:ReadmeSampleAzureKeyCredential
30
30
  import { AzureKeyCredential } from "@azure/core-auth";
31
31
 
32
32
  const credential = new AzureKeyCredential("secret value");
33
- // prints: "secret value"
34
- console.log(credential.key);
33
+
34
+ console.log(credential.key); // prints: "secret value"
35
+
35
36
  credential.update("other secret value");
36
- // prints: "other secret value"
37
- console.log(credential.key);
37
+
38
+ console.log(credential.key); // prints: "other secret value"
38
39
  ```
39
40
 
40
41
  ### AzureNamedKeyCredential
41
42
 
42
- ```ts snippet:azure_named_key_credential
43
+ ```ts snippet:ReadmeSampleAzureNamedCredential
43
44
  import { AzureNamedKeyCredential } from "@azure/core-auth";
44
45
 
45
46
  const credential = new AzureNamedKeyCredential("ManagedPolicy", "secret value");
46
- // prints: "ManagedPolicy, secret value"
47
- console.log(`${credential.name}, ${credential.key}`);
47
+
48
+ console.log(`${credential.name}, ${credential.key}`); // prints: "ManagedPolicy, secret value"
49
+
48
50
  credential.update("OtherManagedPolicy", "other secret value");
49
- // prints: "OtherManagedPolicy, other secret value"
50
- console.log(`${credential.name}, ${credential.key}`);
51
+
52
+ console.log(`${credential.name}, ${credential.key}`); // prints: "OtherManagedPolicy, other secret value"
51
53
  ```
52
54
 
53
55
  ### AzureSASCredential
54
56
 
55
- ```ts snippet:azure_sas_credential
57
+ ```ts snippet:ReadmeSampleSASCredential
56
58
  import { AzureSASCredential } from "@azure/core-auth";
57
59
 
58
60
  const credential = new AzureSASCredential("signature1");
59
- // prints: "signature1"
60
- console.log(credential.signature);
61
+
62
+ console.log(credential.signature); // prints: "signature1"
63
+
61
64
  credential.update("signature2");
62
- // prints: "signature2"
63
- console.log(credential.signature);
65
+
66
+ console.log(credential.signature); // prints: "signature2"
64
67
  ```
65
68
 
66
69
  ## Next steps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/core-auth",
3
- "version": "1.9.1-alpha.20250130.1",
3
+ "version": "1.9.1-alpha.20250131.1",
4
4
  "description": "Provides low-level interfaces and helper methods for authentication in Azure SDK",
5
5
  "sdk-type": "client",
6
6
  "type": "module",