Skip to content

Commit

Permalink
feat: export types and simplify hook checks and add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
avasisht23 committed Apr 12, 2024
1 parent 29a9f1a commit 00c9eb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/snippets/react/useLogout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useLogout } from "@alchemy/aa-alchemy/react";

export function ComponentWithUser() {
export function ComponentWithLogout() {
// Assumes the app has context of a signer with an authenticated user
const { logout } = useLogout();

return (
<div>
<button onClick={() => logout}>Add Passkey</button>
<button onClick={() => logout}>Logout</button>
</div>
);
}

0 comments on commit 00c9eb0

Please sign in to comment.