Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@descope/node-sdk

Package Overview
Dependencies
Maintainers
4
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@descope/node-sdk

Node.js library used to integrate with Descope

  • 1.0.4-alpha.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
increased by28.2%
Maintainers
4
Weekly downloads
 
Created
Source

Descope Node.js SDK

Use the Descope NodeJS SDK for NodeJS/Express to quickly and easily add user authentication to your application or website.

Installing the SDK

Replace any instance of <ProjectID> in the code below with your company's Project ID, which can be found in the Descope console.

Run the following code in your project. These commands will add the Descope SDK for Node as a project dependency, and set the DESCOPE_PROJECT_ID variable to a valid <ProjectID>.

npm i --save @descope/node-sdk

What do you want to implement?

Click one of the following links to open the documentation for that specific functionality.

Run the Examples

Instantly run the end-to-end ExpresSDK for NodeJS examples, as shown below. The source code for these examples are in the folder GitHub node-sdk/examples folder.

Prerequisites

Run the following commands in your project. Replace any instance of <ProjectID> in the code below with your company's Project ID, which can be found in the Descope console.

This commands will add the Descope NodeJS SDK as a project dependency, clone the SDK repository locally, and set the DESCOPE_PROJECT_ID.

git clone github.com/descope/node-sdk
export DESCOPE_PROJECT_ID=<ProjectID>

Run an example

TL;DR: Run npm run quick

Run the following commands in the root of the project to build and run the examples.

  1. Run this to start the ES6 typescript module example

    npm i && \
    npm run build && \
    cd examples/es6 && \
    npm i && \
    npm run generateCerts && \
    npm start
    
  2. Run this to start the commonjs example

    npm i && \
    npm run build && \
    cd examples/commonjs && \
    npm i && \
    npm run generateCerts && \
    npm start
    

License

The Descope ExpresSDK for Node is licensed for use under the terms and conditions of the MIT license Agreement.

Keywords

FAQs

Package last updated on 01 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc