0.1.3 • Published 1 year ago

@rhcp/sso-node-client v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Red Hat SSO NodeJS Client

Simple client for getting SSO access token to use with API's such as GraphQL

Getting started

import SSOClient from "@rhcp/sso-node-client";

const client = new SSOClient({
    url: process.env.URL,
    realm: process.env.REALM,
    scopes: [process.env.SCOPE],
    clientId: process.env.CLIENT_ID,
    clientSecret: process.env.CLIENT_SECRET,
  });

const token = await client.refreshToken();

// Use token to in Authorization header to GraphQL
0.1.3

1 year ago

0.1.2

1 year ago