/v1/oauth/connections/{grant_id}AuthDisconnect a client
Revokes the whole grant family — the grant, its authorization codes, its refresh tokens and every live access token — in one transaction.
Path parameters
grant_id*string · uuidId of the grant.
Response · 204
Disconnected.
Example
Request
DELETE https://api.platform-auth.productcraft.co/v1/oauth/connections/{grant_id}
Authorization: Bearer YOUR_TOKENimport { PlatformAuth } from "@productcraft/platform-auth";
// Reads PRODUCTCRAFT_API_KEY from the environment; administration
// calls take a person's session: { auth: { type: "bearer", token } }
const platform = new PlatformAuth();
await platform.oauth.connections.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");platform.oauth.connections.delete(grantId, options?): void