How to Revoke an access token

/**

  • Revoke the keycloak token
    */
    revokeToken() {
    const httpOptions = {
    headers: new HttpHeaders({
    “Content-Type”: “application/x-www-form-urlencoded”,
    }),
    };
const params: string = new HttpParams()
  .set("client_id", this.appConfig.getConfig().keycloakClientId)
  .set("client_secret", this.appConfig.getConfig().keycloakSecretId)
  .set("token", this.getToken())
  .set("token_type_hint", "access_token")
  .toString();

return this._http.post(
  (this._revokeTokenUrl = `${
    this.appConfig.getConfig().keycloakUrl
  }/realms/${
    this.appConfig.getConfig().keycloakRealm
  }/protocol/openid-connect/revoke`),
  params,
  httpOptions
);

}

Hello , i’m wondering Why with this my access_token is not revoked when i use this in the logout button