PHP
declare(strict_types=1); require 'vendor/autoload.php'; use Polar; use Polar\Models\Components; $sdk = Polar\Polar::builder()->build(); $request = new Components\RevokeTokenRequest( token: '<value>', clientId: '<id>', clientSecret: '<value>', ); $response = $sdk->oauth2->revoke( request: $request ); if ($response->revokeTokenResponse !== null) { // handle response }
{}
Revoke an access token or a refresh token.
Successful Response
The response is of type object.
object
Was this page helpful?