LogoLogo
  • Get Started
    • Overview
    • Concepts
      • Spaces & space groups
      • Posts
      • Messages
      • TipTap editor
      • File uploads
      • Rich Text Body
    • Websockets (Beta)
  • APIs
    • Admin API
      • Quick start
      • Usage and limits
        • Optimizing usage
      • V1
      • V2
    • Headless
      • Quick start
      • Member API
        • Docs
        • Community Member Search
        • Cookies
        • Direct upload
      • Auth SDK
        • Node.js
          • Methods
        • Ruby
        • Go
        • Python
      • Usage and limits
    • Data API
      • Docs
Powered by GitBook
On this page
  • Installation
  • Import the module into your code
  • Create a client
  • Send your first request
  1. APIs
  2. Headless
  3. Auth SDK

Node.js

Installation

Install @circleco/headless-server-sdk to start working with the Authentication SDK.

npm install @circleco/headless-server-sdk

Import the module into your code

Once the SDK package is installed, import createClient from the headless package.

import { createClient } from "@circleco/headless-server-sdk";

Create a client

Use the createClient function to create a new SDK client instance.

const client = createClient({
  appToken: "AppToken", <-- your app token goes here.
});

Send your first request

const response = await client.getMemberAPITokenFromSSOId(SSOID);
PreviousAuth SDKNextMethods

Last updated 7 months ago