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

auth0-api-tokens

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-api-tokens

Library that given a Auth0 global client credentials allows users to generate JWT tokens for API v2

  • 1.1.0
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

auth0-api-tokens build status

Library that given Auth0 global client credentials allows users to generate JWT tokens for API v2.

You can read more about API v2 tokens in this blog post and in the API explorer.

Installation

npm i auth0-api-tokens

Usage

var TOKEN_EXPIRATION_IN_SECONDS = 3600;

var createToken = require('auth0-api-tokens')({
  clientId: '{YOUR_GLOBAL_CLIENT_ID}',
  clientSecret: '{YOUR_GLOBAL_CLIENT_Secret}',
})

// each key is an entity, each array element is an action
var token = createToken({
	scopes: {
    users: ['read', 'write'],
    clients: ['delete']
	},
	lifetimeInSeconds: TOKEN_EXPIRATION_IN_SECONDS
});

console.log(token); // 'ey...'

Documentation

For more information about auth0 contact our documentation page.

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.

FAQs

Package last updated on 07 May 2015

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