revokeToken()
Revokes both the OAuth access token and refresh token for the associated grant for the given OAuthApplication. The request may specify either token.
function revokeToken(params: RevokeOAuthApplicationTokenParams): Promise<void>const oauthApplicationId = 'oauthapp_123'
const token = 'oat_123'
await clerkClient.oauthApplications.revokeToken({ oauthApplicationId, token })Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/oauth_applications/{oauth_application_id}/revoke_token. See the BAPI reference for more information.
Feedback
Last updated on