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

auth0

Package Overview
Dependencies
Maintainers
48
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0 - npm Package Compare versions

Comparing version 3.4.0 to 4.0.0-beta.0

80

package.json
{
"name": "auth0",
"version": "3.4.0",
"version": "4.0.0-beta.0",
"description": "SDK for Auth0 API v2",
"main": "src/index.js",
"module": "src/index.mjs",
"main": "dist/cjs/index.js",
"types": "dist/types/index.d.ts",
"type": "module",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts"
}
},
"sideEffects": false,
"files": [
"src"
"dist"
],
"scripts": {
"test": "mocha --reporter spec './test/**/*.tests.js'",
"test:ci": "nyc npm run test -- --forbid-only --reporter mocha-junit-reporter",
"test:watch": "cross-env NODE_ENV=test mocha --timeout 5000 './test/**/*.tests.js' './test/*.tests.js' --watch",
"jsdoc:generate": "jsdoc --configure .jsdoc.json --verbose",
"prebuild": "rm -rf dist",
"build": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json && echo '{\"type\": \"commonjs\"}'> dist/cjs/package.json",
"docs": "typedoc --options typedoc.cjs",
"test": "npm run test:mocha && npm run test:jest",
"test:mocha": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' mocha",
"test:jest": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
"test:ci": "c8 npm run test",
"precommit": "pretty-quick --staged",
"lint": "eslint ."
"lint": "eslint ./src --ext ts",
"start:playground": "node --experimental-specifier-resolution=node --no-warnings --loader ts-node/esm playground/index.ts"
},

@@ -24,3 +36,3 @@ "repository": {

"engines": {
"node": ">=14"
"node": ">=16"
},

@@ -38,37 +50,39 @@ "keywords": [

"dependencies": {
"axios": "^0.27.2",
"form-data": "^3.0.1",
"jsonwebtoken": "^9.0.0",
"jwks-rsa": "^3.0.1",
"lru-memoizer": "^2.1.4",
"rest-facade": "^1.16.3",
"retry": "^0.13.1",
"form-data": "^4.0.0",
"jose": "^4.13.2",
"node-fetch": "^2.6.7",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/chai": "^4.3.4",
"@types/chai-as-promised": "^7.1.5",
"@types/jest": "^29.5.0",
"@types/mocha": "^10.0.1",
"@types/node-fetch": "^2.6.3",
"@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"c8": "^7.13.0",
"chai": "^4.2.0",
"cross-env": "^5.2.0",
"chai-as-promised": "^7.1.1",
"commander": "^10.0.1",
"dotenv": "^16.0.3",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jsdoc": "^37.0.3",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"husky": "^3.0.1",
"jsdoc": "^3.6.7",
"json-loader": "^0.5.7",
"jws": "^3.2.2",
"minami": "^1.2.3",
"mocha": "^8.4.0",
"mocha-junit-reporter": "^2.0.0",
"jest": "^29.5.0",
"mocha": "^9.1.3",
"nock": "^13.2.7",
"nyc": "^14.1.1",
"prettier": "2.4.1",
"prettier": "^2.8.7",
"pretty-quick": "^1.11.1",
"proxyquire": "^2.1.3",
"sinon": "^14.0.0",
"string-replace-webpack-plugin": "0.1.3",
"superagent-proxy": "^3.0.0",
"webpack": "^4.36.1"
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typedoc": "^0.24.6",
"typescript": "4.9.5"
}
}
![Node.js client library for Auth0](https://cdn.auth0.com/website/sdks/banner/node-auth0-banner.png)
> ⚠️ Please be aware that v4 is currently in <strong>Beta</strong>. Whilst we encourage you to test the update within your applications, we do no recommend using this version in production yet.
![Release](https://img.shields.io/npm/v/auth0)

@@ -9,7 +11,6 @@ [![Codecov](https://img.shields.io/codecov/c/github/auth0/node-auth0)](https://codecov.io/gh/auth0/node-auth0)

📚 [Documentation](#documentation) - 🚀 [Getting Started](#getting-started) - 💻 [API Reference](#api-reference) - 💬 [Feedback](#feedback)
📚 [Documentation](#documentation) - 🚀 [Getting Started](#getting-started) - 💬 [Feedback](#feedback)
## Documentation
- [FAQs](https://github.com/auth0/node-auth0/blob/master/FAQ.md) - frequently asked questions about node-auth0.
- [Docs Site](https://auth0.com/docs) - explore our docs site and learn more about Auth0

@@ -23,3 +24,3 @@

- Node.js: `>=8.3.0`
- Node.js: `>=16`

@@ -31,3 +32,3 @@ ### Installation

```bash
npm install auth0
npm install auth0@beta
```

@@ -39,3 +40,3 @@

This client must be used to access Auth0's [Authentication API](https://auth0.com/docs/api/authentication).
This client can be used to access Auth0's [Authentication API](https://auth0.com/docs/api/authentication).

@@ -45,7 +46,8 @@ The **AuthenticationClient** constructor takes an _optional_ client ID, if specified it will be used as default value for all endpoints that accept a client ID.

```js
var AuthenticationClient = require('auth0').AuthenticationClient;
import { AuthenticationClient } from 'auth0';
var auth0 = new AuthenticationClient({
const auth0 = new AuthenticationClient({
domain: '{YOUR_ACCOUNT}.auth0.com',
clientId: '{OPTIONAL_CLIENT_ID}',
clientSecret: '{OPTIONAL_CLIENT_SECRET}',
});

@@ -56,4 +58,2 @@ ```

> Note: When using the ManagementClient in a browser you should set `telemetry: false`.
The Auth0 Management API is meant to be used by back-end servers or trusted parties performing administrative tasks. Generally speaking, anything that can be done through the Auth0 dashboard (and more) can also be done through this API.

@@ -64,16 +64,20 @@

```js
var ManagementClient = require('auth0').ManagementClient;
import { ManagementClient } from 'auth0';
var management = new ManagementClient({
domain: '{YOUR_ACCOUNT}.auth0.com',
token: '{YOUR_API_V2_TOKEN}',
domain: '{YOUR_ACCOUNT}.auth0.com',
});
```
For other examples see the [EXAMPLES.md](https://github.com/auth0/node-auth0/blob/master/EXAMPLES.md) document.
Or, initialize your client class with a client secret and a domain.
## API Reference
```js
import { ManagementClient } from 'auth0';
- [AuthenticationClient](https://auth0.github.io/node-auth0/AuthenticationClient.html)
- [ManagementClient](https://auth0.github.io/node-auth0/ManagementClient.html)
var management = new ManagementClient({
token: '{YOUR_API_V2_TOKEN}',
domain: '{YOUR_ACCOUNT}.auth0.com',
});
```

@@ -80,0 +84,0 @@ ## Feedback

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