Socket
Socket
Sign inDemoInstall

@assistants-center/identity

Package Overview
Dependencies
9
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @assistants-center/identity

A library for interacting with the Assistants' Center Identity API


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 05 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc