2.0.0 • Published 10 months ago
@rhc-shared-components/rhc-sso v2.0.0
@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
2.0.0
10 months ago
1.1.4
1 year ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago
0.3.0
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.3.3
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.2.2
2 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.12
3 years ago
0.1.13
3 years ago
0.1.14
3 years ago
0.1.15
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago