JSPM

authing-js-sdk

4.0.0-alpha.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7532
  • Score
    100M100P100Q114405F
  • License MIT

Official SDK of Authing

Package Exports

  • authing-js-sdk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (authing-js-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

authing-js-sdk

Official SDK of Authing

Modules

  • management (All operation can be done on the dashboard, on behalf of userpool admin.)
    • pipeline
    • webhook
    • userpool
    • users
    • whitelist
    • emailTemplates
    • emailProviders
    • logs
    • connections
    • importUsers
    • accessContorl
    • org
  • authentication (Authentication Api, on behalf of normal users)
    • qrlogin
    • basic
    • social
    • oauth
    • oidc
    • ldap
    • saml
    • ad

How to use

ManagermentClient

import { ManagementClient } from "authing-js-sdk"

// Init ManagermentClient
const management = new ManagermentClient({
  userPoolId: "AUTHING_USERPOOL_ID",
  secret: "AUTHING_USERPOOL_SECRET",
  server: {
    graphqlApiEndpoint: "AUTHING_GRAPHQL_ENDPOINT",
    restApiBaseHost: "AUTHING_RESTAPI_HOST"
  }
})

// Manage users
management.users.create()
management.users.update()
management.users.delete()
management.users.get()
management.users.list()

// Manage userpool
management.userpool.info()
management.userpool.update()

// Manage orgnization
management.pipeline.create()
management.pipeline.update()
management.pipeline.delete()
management.pipeline.get()
management.pipeline.list()

// ....

AuthenticationClient

import { AuthenticationClient } from "authing-js-sdk"

// Init ManagermentClient
const authing = new AuthenticationClient({
  userPoolId: "AUTHING_USERPOOL_ID",
})

// Do OIDC Login
authing.oidc.getAuthorizationUrl()
authing.oidc.exchangeAccessToken()
authing.oidc.exchangeUserInfo()

// ...