revokeToken()
Revokes an M2M token. This endpoint can be authenticated by either a Machine Secret Key or by a Clerk .
- When revoking M2M tokens with a Machine Secret Key, the token will be revoked using the machine secret key.
- When revoking M2M tokens with a Clerk Secret Key, the token will be revoked using the instance secret key.
Returns the revoked M2MToken object.
function revokeToken(params: RevokeM2MTokenParams): Promise<M2MToken>const response = await clerkClient.m2m.revokeToken({ m2mTokenId })Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/m2m_tokens/{m2m_token_id}/revoke. See the BAPI reference for more information.
Feedback
Last updated on