Revoke a user's auth tokens
cometchat_revoke_auth_tokensRevokes a user's auth tokens (all, or the one auth_token given), so they must sign in with a new token. The user and their data are kept.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"uid": "<uid>"
},
"name": "cometchat_revoke_auth_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | User ID | |
| app_id | Yes | The CometChat App ID (from cometchat_list_apps). | |
| confirm | No | Set true only after the user has explicitly agreed to this change. Without it, nothing happens and you get a summary to show them. | |
| auth_token | No | Only this token (optional; default: all of the user's tokens) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | User ID | |
| app_id | Yes | App ID | |
| revoked | Yes | all, one, or none (the user had no tokens) |