0.1.6 • Published 3 years ago

@link1900/node-oauth v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@link1900/node-oauth

Node oauth

Install

Using npm:

npm install @link1900/node-oauth

or using yarn:

yarn add @link1900/node-oauth

Usage

Example for getting a Machine to Machine oauth token from Origin auth0 service.

  const oAuthRequest: OAuthRequest = {
    client_id: "AUTH0_CLIENT_ID",
    client_secret: "AUTH0_CLIENT_SECRET",
    audience: "https://read-user-api",
    grant_type: "client_credentials",
  };
  const auth0Endpoint = "AUTH0_OAUTH_ENDPOINT";
  return findOrLoadOAuthToken("token_type", auth0Endpoint, oAuthRequest);
0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago