Skip to main content

revokeAuthToken()

function revokeAuthToken(args: RevokeAuthTokenRequestArgs, baseUrl?: string): Promise<boolean>

Revokes an access token, making it invalid for future use.

Parameters

ParameterType
argsRevokeAuthTokenRequestArgs
baseUrl?string

Returns

Promise<boolean>

True if revocation was successful

Example

await revokeAuthToken({
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
accessToken: token
})