Skip to content

Commit

Permalink
fix: updating logout function on README example code (#556)
Browse files Browse the repository at this point in the history
Co-authored-by: Frederik Prijck <[email protected]>
  • Loading branch information
maitzeth and frederikprijck authored Jul 24, 2023
1 parent 42f74e3 commit 2f1120e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function App() {
return (
<div>
Hello {user.name}{' '}
<button onClick={() => logout({ returnTo: window.location.origin })}>
<button onClick={() => logout({ logoutParams: { returnTo: window.location.origin } })}>
Log out
</button>
</div>
Expand Down

0 comments on commit 2f1120e

Please sign in to comment.