@rhcp/sso-node-client
v0.1.3
Published
Simple sso client with oidc connect
Downloads
128
Keywords
Readme
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