2.0.0-beta.8 • Published 11 months ago

@assistants-center/identity v2.0.0-beta.8

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Assistants' Center Identity Client Module

Installation

npm install @assistants-center/identity-client

Usage

import { IdentityClient } from '@assistants-center/identity-client';

const identityClient = new IdentityClient({
    clientId: "client_id",
    clientSecret: "client_secret",
    redirectUri: "https://example.com/redirect",
    scopes: ["account:read"],
    identityUrl: "https://identity.assistantscenter.com"
});

// Get the URL to redirect the user to
const url = identityClient.getUrl();
// https://identity.assistantscenter.com/api/auth/authorize?client_id=client_id&redirect_uri=https://example.com/redirect&scope=admin%20account%3Aread

// Get the access token
const token = await identityClient.getAccessToken("code");

// Get the user info
const user = await identityClient.getUserInfo(token.access_token);

Documentation

Soon to come.

Requesting a Client

To request your own Client, please contact us at: contact@assistantscenter.com

License

This project falls under the MIT license.

2.0.0-beta.8

11 months ago

2.0.0-beta.7

11 months ago

2.0.0-beta.2

11 months ago

2.0.0-beta.1

11 months ago

2.0.0-beta.0

11 months ago

2.0.0-beta.6

11 months ago

2.0.0-beta.5

11 months ago

2.0.0-beta.4

11 months ago

2.0.0-beta.3

11 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago