This commit is contained in:
seb
2026-10-13 00:36:36 +02:00
parent 8a8aeaedd7
commit 4b2ca7ce0e
7 changed files with 97 additions and 0 deletions

View File

@@ -127,6 +127,22 @@ Retrieves an OAuth 2.1 refresh token.
`Promise<object|null>` — The refresh token record or null.
## `mcp.listAuthorizations`
*Source: `src/store/mcp/listAuthorizations.js`*
Lists active authorizations for a Google Auth user.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The user ID. |
**Returns**
`Promise<Array<object>>` — List of authorized clients and token counts.
## `mcp.listClients`
*Source: `src/store/mcp/listClients.js`*
@@ -160,6 +176,23 @@ Registers a new OAuth MCP client.
`Promise<object>` — The created client record.
## `mcp.revokeAuthorizations`
*Source: `src/store/mcp/revokeAuthorizations.js`*
Revokes all active authorizations (tokens) for a user and MCP client.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The user ID. |
| `clientId` | `string` | The MCP client ID. |
**Returns**
`Promise<boolean>` — True once revoked.
## `mcp.revokeRefreshToken`
*Source: `src/store/mcp/revokeRefreshToken.js`*