Socket
Socket
Sign inDemoInstall

auth0-autorenewing-token

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-autorenewing-token

A helper for auth0/node-auth0 that handles retrieving/renewing access tokens


Version published
Maintainers
1
Created
Source

auth0-autorenewing-token

A helper for auth0/node-auth0 that handles retrieving/renewing access tokens

Build status Greenkeeper badge

Want to use the Auth0 Management API or the Authentication API, but don't want to renew access tokens yourself? Us too. That's why we made this.

Also, if you're using this, you probably want to check out Auth0's awesome auth0 (if you haven't already).

Usage

const RenewingToken = require('auth0-autorenewing-token')

const auth0Options = {
  domain: 'YOUR_DOMAIN.auth0.com',
  clientId: 'CLIENT_ID',
  clientSecret: 'SEEEECRET_BOX',
  audience: ''
}

const renewingToken = new RenewingToken(auth0Options)

renewingToken
  .getToken()
  .then(token => {
    /* use the token to make calls to the Management and/or Authentication APIs */
  })

Install

With either Yarn or npm installed, run one of the following:

# If using Yarn:
yarn add auth0-autorenewing-token

# If using npm:
npm install --save auth0-autorenewing-token

See Also

License

MIT

Keywords

FAQs

Package last updated on 07 Apr 2017

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