You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`\nSuccessfully revoked all tokens for user with Id: ${userResponse.communicationUserId}`);
124
124
```
125
125
126
+
## Refresh user access tokens
127
+
128
+
To refresh a token, use the `CommunicationUser` object to re-issue:
129
+
130
+
```javascript
131
+
let userResponse =newCommunicationUser(existingUserId);
132
+
let tokenResponse =awaitidentityClient.issueToken(userResponse, ["voip"]);
133
+
```
134
+
126
135
## Delete a user
127
136
128
137
Deleting a user revokes all active tokens and prevents you from issuing subsequent tokens for the identities. It also removes all the persisted content associated with the user.
@@ -115,12 +122,13 @@ The following classes and interfaces handle some of the major features of the Az
115
122
You need to replace `<USER_ACCESS_TOKEN>` with a valid user access token for your resource. Refer to the [user access token](../../access-tokens.md) documentation if you don't already have a token available. Using the `CallClient`, initialize a `CallAgent` instance with a `CommunicationUserCredential` which will enable us to make and receive calls. Add the following code to **client.js**:
0 commit comments