revoke function

Future<void> revoke({
  1. required Client httpClient,
  2. required String revocationEndpoint,
  3. required String clientId,
  4. required String token,
})

Revoke the token.

Implementation

Future<void> revoke({
  required http.Client httpClient,
  required String revocationEndpoint,
  required String clientId,
  required String token,
}) =>
    httpClient.post(Uri.parse(revocationEndpoint),
        headers: {'Content-Type': _requestContentType},
        body: {'client_id': clientId, 'token': token});