@rhc-shared-components/rhc-sso-tpdh
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@rhc-shared-components/rhc-sso-tpdh

React Red hat SSO wrapper for Red Hat Certified Apps

NPM JavaScript Style Guide

Install

yarn add @rhc-shared-components/rhc-sso-tpdh

Usage

import React from 'react'

import { RHCAuthProvider, useRHCAuthContext } from '@rhc-shared-components/rhc-sso-tpdh';

const Child = () => {
  const {isAuthenticated} = useRHCAuthContext();
  console.log(isAuthenticated);
  return <div>
    {isAuthenticated ? "User authenticated" : "User is not authenticated"}
  </div>
};

const App = () => {
  return <RHCAuthProvider>
    <Child/>
  </RHCAuthProvider>
};

export default App;

License

MIT © gautamkrishnar

Readme

Keywords

none

Package Sidebar

Install

npm i @rhc-shared-components/rhc-sso-tpdh

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

176 kB

Total Files

8

Last publish

Collaborators

  • eyevana
  • kipatil-1
  • shkale
  • bdone
  • gkr-redhat