0.1.6 • Published 2 years ago

@link1900/node-oauth v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago