open-index/open-npm huggingface dataset:
npm package: @rhc-shared-components/rhc-sso
Description: > React Red hat SSO wrapper for Red Hat Certified Apps
Latest version: 5.0.1

# @rhc-shared-components/rhc-sso

> React Red hat SSO wrapper for Red Hat Certified Apps

[![NPM](https://img.shields.io/npm/v/@rhc-shared-components/rhc-sso.svg)](https://www.npmjs.com/package/@rhc-shared-components/rhc-sso
) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
yarn add @rhc-shared-components/rhc-sso

```

## Usage

```tsx
import React from 'react'

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

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](https://github.com/gautamkrishnar)