Created
July 19, 2019 14:22
-
-
Save guzmonne/b6647451894903eb2eed5aa2a596ea5a to your computer and use it in GitHub Desktop.
Keycloak SS0 - App_v2.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Keycloak from './Keycloak.js'; | |
import { keycloak } from '../modules/keycloak.js'; | |
function Welcome() { | |
return <div>Welcome {keycloak.idTokenParsed.name}!</div> | |
} | |
function App() { | |
return ( | |
<Keycloak> | |
<Welcome /> | |
</Keycloak> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment