1.1.5 • Published 24 days ago

@tokens-studio/sdk v1.1.5

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

Token Studio SDK

This is the official SDK for Tokens Studio.

Quickstart

Installation

npm install @tokens-studio/sdk

Signup

You will need to sign up to the Tokens Studio platform if you haven't already. The entire signup process can be done purely using this library and your email

import { UserAuth, Configuration } from '@tokens-studio/sdk';

//Use defaults
Configuration.configure();

const username = 'MyUserName';
const password = 'SomeSecurePassword1!';

const signup = await UserAuth.signUp({
    username,
    password,
    attributes: {
        email: 'my@email.com'
    }
});

// ...
//Retrieve the verification code from your email address
const verificationCode = '...';

await UserAuth.confirmSignUp(username, verificationCode);
await UserAuth.signIn(username, password);

// You should now be signed in and can make authenticated requests.
// Please see the documentation for alternate authentication modes should you wish to use API keys,etc

Permissions

Note that some of the preconfigured queries are very expansive and attempt to require all properties on a type. This might cause problems with scoped permissions.

In cases like this, it is beneficial to be as specific as possible with the return values if operating with the public mode API or API keys.

Contributing

See Contributing for more info on running tests, etc

Underlying Graphql documentation

See the documentation for the GraphQL API here

Documentation

See the documentation site for more info

ES5 & ES6

The library supports both ES5 commonjs as well as ES6 module js

Type secure

The entire library is built with typescript and provides multiple utilities to ensure type safety

License

This repository is published under the MIT license.

1.1.5

24 days ago

1.1.4

29 days ago

1.1.3

2 months ago

1.1.2

2 months ago

1.1.1

3 months ago

1.1.0

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

5 months ago

0.1.51-alpha.0

10 months ago

0.3.0

10 months ago

0.4.0

9 months ago

0.1.50-alpha.0

12 months ago

0.1.49-alpha.0

12 months ago

0.1.41-alpha.0

1 year ago

0.1.42-alpha.0

1 year ago

0.1.32-alpha.0

1 year ago

0.1.40-alpha.0

1 year ago

0.1.39-alpha.0

1 year ago

0.1.33-alpha.0

1 year ago

0.1.34-alpha.0

1 year ago

0.1.28-alpha.0

1 year ago

0.1.20-alpha.0

1 year ago

0.1.21-alpha.0

1 year ago

0.1.35-alpha.0

1 year ago

0.1.30-alpha.0

1 year ago

0.1.19-alpha.0

1 year ago

0.1.31-alpha.0

1 year ago

0.1.1-alpha.0

1 year ago

0.0.0-alpha.0

1 year ago