1.1.0-next.1 • Published 2 years ago
cryptr-sdk v1.1.0-next.1
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
2 years ago
1.1.0-next.14
2 years ago
1.1.0-next.11
2 years ago
1.1.0-next.12
2 years ago
1.1.0-next.10
2 years ago
1.1.0-next.9
2 years ago
1.1.0-next.8
2 years ago
1.1.0-next.17
2 years ago
1.1.0-next.7
2 years ago
1.1.0-next.6
2 years ago
1.1.0-next.15
2 years ago
1.1.0-next.5
2 years ago
1.1.0-next.16
2 years ago
1.1.0-next.4
2 years ago
1.1.0-next.3
2 years ago
1.1.0-next.2
2 years ago
1.1.0-next.1
2 years ago
1.0.3-next.2
2 years ago
1.0.3-next.1
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
0.0.1
2 years ago
1.0.0
2 years ago