1.1.4 • Published 2 months ago
@rhc-shared-components/rhc-sso v1.1.4
@rhc-shared-components/rhc-sso
React Red hat SSO wrapper for Red Hat Certified Apps
Install
yarn add @rhc-shared-components/rhc-sso
Usage
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
1.1.4
2 months ago
1.1.3
5 months ago
1.1.2
5 months ago
1.1.1
5 months ago
1.1.0
8 months ago
1.0.0
8 months ago
0.3.0
8 months ago
0.3.2
5 months ago
0.3.1
8 months ago
0.3.3
5 months ago
0.2.1
1 year ago
0.2.0
1 year ago
0.2.2
1 year ago
0.1.10
2 years ago
0.1.11
2 years ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.14
2 years ago
0.1.15
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago