@logto/node
v2.5.8
Published
[![Version](https://img.shields.io/npm/v/@logto/node)](https://www.npmjs.com/package/@logto/node) [![Build Status](https://github.com/logto-io/js/actions/workflows/main.yml/badge.svg)](https://github.com/logto-io/js/actions/workflows/main.yml) [![Codecov]
Downloads
27,893
Readme
Logto Node.js SDK
The Logto Node.js SDK written in TypeScript. Check out our docs for more information.
Installation
Using npm
npm install @logto/node
Using yarn
yarn add @logto/node
Using pnpm
pnpm add @logto/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.). @logto/node
extends @logto/client
and provides a Node.js specific implementation of the client adapters:
- Implements
requester
by using packagenode-fetch
. - Implements
generateCodeChallenge
,generateCodeVerifier
,generateState
methods by usingcrypto
.
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.