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

5.0.0 • Public • Published


@clerk/clerk-sdk-node


Overview

Clerk is the easiest way to add authentication and user management to your Node.js application. To gain a better understanding of the Clerk Backend API and SDK, refer to the Node SDK and Backend API documentation.

Getting started

Prerequisites

  • Node.js >=18.17.0 or later

Installation

npm install @clerk/clerk-sdk-node

To build the package locally with the TypeScript compiler, run:

npm run build

Usage

Retrieve your Backend API key from the API Keys screen in your Clerk dashboard and set it as an environment variable in a .env file:

CLERK_PUBLISHABLE_KEY=pk_*******
CLERK_SECRET_KEY=sk_******

You will then be able to access all the available methods.

import 'dotenv/config'; // To read CLERK_SECRET_KEY
import clerk from '@clerk/clerk-sdk-node';

const { data: userList } = await clerk.users.getUserList();

For further details and examples, please refer to our Documentation.

Support

You can get in touch with us in any of the following ways:

Contributing

We're open to all community contributions! If you'd like to contribute in any way, please read our contribution guidelines.

Security

@clerk/clerk-sdk-node follows good practices of security, but 100% security cannot be assured.

@clerk/clerk-sdk-node is provided "as is" without any warranty. Use at your own risk.

For more information and to report security issues, please refer to our security documentation.

License

This project is licensed under the MIT license.

See LICENSE for more information.

Readme

Keywords

Package Sidebar

Install

npm i @clerk/clerk-sdk-node

Homepage

clerk.com/

Weekly Downloads

113,473

Version

5.0.0

License

MIT

Unpacked Size

69.6 kB

Total Files

9

Last publish

Collaborators

  • jescalan
  • giannis-clerk
  • chanioxaris
  • colinclerk
  • bradenclerk
  • sokratis
  • yourtallness
  • nikosdouvlis