revokeToken abstract method

  1. @POST('/oauth2/revoke')
Future<RevokeTokenResponse> revokeToken({
  1. @Body() required RevokeTokenRequest body,
  2. @Header('Authorization') required String applicationSecret,
})

Revokes an access token generated with the OAuth flow.

If an account has more than one OAuth access token for your application, this endpoint revokes all of them, regardless of which token you specify. When an OAuth access token is revoked, all of the active subscriptions associated with that OAuth token are canceled immediately.

Implementation

@POST('/oauth2/revoke')
Future<RevokeTokenResponse> revokeToken({
  @Body() required RevokeTokenRequest body,
  @Header('Authorization') required String applicationSecret,
});