revokeTokensForUserAndClient(userId, clientId) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API revokeTokensForUserAndClient parameter userId is required.'));
    }
    if (!clientId) {
      return Promise.reject(new Error('OKTA API revokeTokensForUserAndClient parameter clientId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/clients/${clientId}/tokens`;

    const resources = [
      `${this.baseUrl}/api/v1/users/${userId}/clients/${clientId}`,
      `${this.baseUrl}/api/v1/users/${userId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param userId {String}
   * @param clientId {String}
   * @description
   * Revokes all refresh tokens issued for the specified User and Client.
   */
@param userId {String}
@param clientId {String}
@description
Revokes all refresh tokens issued for the specified User and Client.
@param userId { String } @param clientId { String } @description Revokes all refresh tokens issued for the specified User and Client .
revokeTokensForUserAndClient(userId, clientId) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API revokeTokensForUserAndClient parameter userId is required.'));
    }
    if (!clientId) {
      return Promise.reject(new Error('OKTA API revokeTokensForUserAndClient parameter clientId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/clients/${clientId}/tokens`;
    const resources = [
      `${this.baseUrl}/api/v1/users/${userId}/clients/${clientId}`,
      `${this.baseUrl}/api/v1/users/${userId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
revokeTokensForUserAndClient ( userId , clientId ) { if ( ! userId ) { return Promise . reject ( new Error ( 'OKTA API revokeTokensForUserAndClient parameter userId is required.' ) ) ; } if ( ! clientId ) { return Promise . reject ( new Error ( 'OKTA API revokeTokensForUserAndClient parameter clientId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ userId } ${ clientId } ` ; const resources = [ ` ${ this . baseUrl } ${ userId } ${ clientId } ` , ` ${ this . baseUrl } ${ userId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param userId {String}
 @param clientId {String}
 @description
 Revokes all refresh tokens issued for the specified User and Client.
@param userId { String } @param clientId { String } @description Revokes all refresh tokens issued for the specified User and Client .