@slash-copilot/node
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Logto Node.js SDK

Version Build Status Codecov

The Logto Node.js SDK written in TypeScript. Check out our docs for more information.

Installation

Using npm

npm install @slash-copilot/node

Using yarn

yarn add @slash-copilot/node

Using pnpm

pnpm add @slash-copilot/node

What is this and how does it work?

As the name suggests, Logto Node.js SDK is the foundation of all Logto SDKs that run in Node.js (Express, Next.js, etc.). @slash-copilot/node extends @slash-copilot/client and provides a Node.js specific implementation of the client adapters:

  • Implements requester by using package node-fetch.
  • Implements generateCodeChallenge, generateCodeVerifier, generateState methods by using crypto.

Usually you are not expected to use it directly in your application, but instead choosing a framework specific SDK that built on top of it. We have already released a set of official SDKs to accelerate your integration. Check this out and get started!

If Logto does not support your traditional web framework and you want to create your own SDK from scratch, we recommend checking out the SDK specification first. You can also refer to our Express SDK and Next.js SDK to learn more about the implementation details.

Resources

Website Docs Discord

Readme

Keywords

none

Package Sidebar

Install

npm i @slash-copilot/node

Weekly Downloads

0

Version

2.3.0

License

MIT

Unpacked Size

26.9 kB

Total Files

21

Last publish

Collaborators

  • waltcow