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

    return new Collection(
      this,
      url,
      new ModelFactory(models.SocialAuthToken),
    );
  }
/**
   *
   * @param idpId {String}
   * @param userId {String}
   * @description
   * Fetches the tokens minted by the Social Authentication Provider when the user authenticates with Okta via Social Auth.
   * @returns {Collection} A collection that will yield {@link SocialAuthToken} instances.
   */
@param idpId {String}
@param userId {String}
@description
Fetches the tokens minted by the Social Authentication Provider when the user authenticates with Okta via Social Auth.
@returns {Collection} A collection that will yield  SocialAuthToken instances.
@param idpId { String } @param userId { String } @description Fetches the tokens minted by the Social Authentication Provider when the user authenticates with Okta via Social Auth . @returns { Collection } A collection that will yield SocialAuthToken instances .
listSocialAuthTokens(idpId, userId) {
    if (!idpId) {
      return Promise.reject(new Error('OKTA API listSocialAuthTokens parameter idpId is required.'));
    }
    if (!userId) {
      return Promise.reject(new Error('OKTA API listSocialAuthTokens parameter userId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/idps/${idpId}/users/${userId}/credentials/tokens`;
    return new Collection(
      this,
      url,
      new ModelFactory(models.SocialAuthToken),
    );
  }
listSocialAuthTokens ( idpId , userId ) { if ( ! idpId ) { return Promise . reject ( new Error ( 'OKTA API listSocialAuthTokens parameter idpId is required.' ) ) ; } if ( ! userId ) { return Promise . reject ( new Error ( 'OKTA API listSocialAuthTokens parameter userId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ idpId } ${ userId } ` ; return new Collection ( this , url , new ModelFactory ( models . SocialAuthToken ) , ) ; }
@param idpId {String}
 @param userId {String}
 @description
 Fetches the tokens minted by the Social Authentication Provider when the user authenticates with Okta via Social Auth.
@param idpId { String } @param userId { String } @description Fetches the tokens minted by the Social Authentication Provider when the user authenticates with Okta via Social Auth .