Created
July 19, 2019 14:22
-
-
Save guzmonne/1d32b3250eed36073e39c538ac006004 to your computer and use it in GitHub Desktop.
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}! | |
<button onClick={() => keycloak.accountManagement()}> | |
Account | |
</button> | |
</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