Socket
Book a DemoInstallSign in
Socket

@passbase/node

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@passbase/node

Passbase API client for NodeJS

1.3.1
latest
Source
npmnpm
Version published
Weekly downloads
979
15.86%
Maintainers
2
Weekly downloads
 
Created
Source

banner

Passbase Node SDK ci

Welcome to the Passbase Verifications API docs. This documentation will help you understand our models and the Verification API with its endpoints. Based on this you can build your own system (i.e. verification) and hook it up to Passbase.

This package is a client meant to be used on the server-side to communicate with Passbase servers. You can find more information here: https://docs.passbase.com/server/api

Example how to use the SDK

const {
  PassbaseClient,
  PassbaseConfiguration,
  ResponseFormats,
} = require("@passbase/node");

async function main() {
  const apiKey = "[redacted]";

  const config = new PassbaseConfiguration({
    apiKey,
    format: ResponseFormats.Json,
  });
  const client = new PassbaseClient(config);

  const settings = await client.getSettings();

  console.log(JSON.stringify(settings, null, 4));
}

main().catch(err => {
  console.error(err);
  process.exit(1);
});

Documentation for API Endpoints

All URIs are relative to https://api.passbase.com/verification/v2

ClassMethodHTTP requestDescription
VerificationApi.IdentityApigetIdentityByIdGET /identities/{id}Get identity
VerificationApi.IdentityApigetIdentityResourceByIdGET /identity/{id}/resources/{resource_id}Get resource
VerificationApi.IdentityApigetIdentityResourceFileByIdGET /identity/{id}/resources/{resource_id}/resource_files/{resource_file_id}Get resource file
VerificationApi.IdentityApilistIdentitiesGET /identitiesList identities
VerificationApi.IdentityApilistIdentityResourcesGET /identity/{id}/resourcesList resources
VerificationApi.ProjectApigetSettingsGET /settingsGet project settings

Documentation for Models

Documentation for Authorization

IdentityAccessToken

  • Type: Bearer authentication (JWT)

PublishableApiKey

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

SecretApiKey

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

Keywords

ts

FAQs

Package last updated on 05 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.