@azure/communication-identity 1.3.2-alpha.20250604.4 → 1.3.2-alpha.20250605.6
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.
- package/README.md +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ const user = await client.createUser();
|
|
|
94
94
|
|
|
95
95
|
Use the `createUser` method to create a new user with `customId`. This `customId` can be used to map your application's user identities with Azure Communication Services identities. If you call the `CreateUser` method again with the same `customId`, it will return the same `user.Id`. Therefore, you do not need to store this mapping yourself.
|
|
96
96
|
|
|
97
|
-
```ts snippet:
|
|
97
|
+
```ts snippet:ReadmeSampleCreateUser_CustomId
|
|
98
98
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
99
99
|
import { CommunicationIdentityClient } from "@azure/communication-identity";
|
|
100
100
|
|
|
@@ -103,7 +103,8 @@ const endpoint = "https://contoso.eastus.communications.azure.net";
|
|
|
103
103
|
const credential = new DefaultAzureCredential();
|
|
104
104
|
const client = new CommunicationIdentityClient(endpoint, credential);
|
|
105
105
|
|
|
106
|
-
const user = await client.createUser();
|
|
106
|
+
const user = await client.createUser({ customId: "alice@contoso.com" });
|
|
107
|
+
const getResult = await client.getUser(user);
|
|
107
108
|
```
|
|
108
109
|
|
|
109
110
|
### Creating and refreshing a user token
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/communication-identity",
|
|
3
|
-
"version": "1.3.2-alpha.
|
|
3
|
+
"version": "1.3.2-alpha.20250605.6",
|
|
4
4
|
"description": "SDK for Azure Communication service which facilitates user token administration.",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"main": "./dist/commonjs/index.js",
|