1.1.0-next.1 • Published 1 year ago

cryptr-sdk v1.1.0-next.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

cryptr-sdk

!Important WIP

This library wraps around the Cryptr API

How to install

npm install cryptr-sdk

How to use

import { Cryptr } from 'cryptr-sdk'

const cryptr = new Cryptr(/* options */)

const organization = await cryptr.organizations.create({
  name,
  country_name,
  locality,
  state,
  ...optional,
})

const user = await cryptr.users.create({ profile: { email } })

Options

server_url: string
client_id: string
client_secret: string
tenant_domain: string
grant_type: 'client_credentials'
environment: 'development' | 'production'
persist_token: boolean | string

Environment variables

# main
CRYPTR_SERVER_URL
CRYPTR_CLIENT_ID
CRYPTR_CLIENT_SECRET
CRYPTR_TENANT_DOMAIN

# tests
TEST_CRYPTR_NEW_ORG_NAME
TEST_CRYPTR_NEW_USER_EMAIL
TEST_CRYPTR_SHOULD_TEST_TOKENS
TEST_CRYPTR_SHOULD_SUFFIX_ORG_WITH_TIMESTAMP
TEST_CRYPTR_SHOULD_SUFFIX_USER_EMAIL_WITH_TIMESTAMP
1.1.0-next.13

1 year ago

1.1.0-next.14

1 year ago

1.1.0-next.11

1 year ago

1.1.0-next.12

1 year ago

1.1.0-next.10

1 year ago

1.1.0-next.9

1 year ago

1.1.0-next.8

1 year ago

1.1.0-next.17

1 year ago

1.1.0-next.7

1 year ago

1.1.0-next.6

1 year ago

1.1.0-next.15

1 year ago

1.1.0-next.5

1 year ago

1.1.0-next.16

1 year ago

1.1.0-next.4

1 year ago

1.1.0-next.3

1 year ago

1.1.0-next.2

1 year ago

1.1.0-next.1

1 year ago

1.0.3-next.2

1 year ago

1.0.3-next.1

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.0.1

1 year ago

1.0.0

1 year ago