2.1.3 • Published 20 days ago

@digiv3rse/client v2.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
20 days ago

DiGi JavaScript SDK

The official framework-agnostic JavaScript SDK for DiGi Protocol.


This package enables you to interact with the DiGi API via a type safe interface that abstracts away some of the GraphQL intricacies.

Documentation

Quick start

Install the DiGi React Native SDK package using your package manager of choice:

Package ManagerCommand
npmnpm install @digiv3rse/client@latest
yarnyarn add @digiv3rse/client@latest
pnpmpnpm add @digiv3rse/client@latest

Development configuration example:

import { DiGiClient, development } from '@digiv3rse/client';

const client = new DiGiClient({
  environment: development,
});

Production configuration example:

import { DiGiClient, production } from '@digiv3rse/client';

const client = new DiGiClient({
  environment: production,
});

In a browser-based implementation you can use the Web Storage API to persist authentication state.

const client = new DiGiClient({
  environment: production,

  storage: window.localStorage,
});