Hook to access the currently authenticated user's information.
function UserProfile() { const { currentUser } = useCurrentUser(); if (!currentUser) { return null; } return ( <div> <h2>User Profile</h2> <p>User ID: {currentUser.userId}</p> <p>EVM Accounts: {currentUser.evmAccounts.join(", ")}</p> </div> );} Copy
function UserProfile() { const { currentUser } = useCurrentUser(); if (!currentUser) { return null; } return ( <div> <h2>User Profile</h2> <p>User ID: {currentUser.userId}</p> <p>EVM Accounts: {currentUser.evmAccounts.join(", ")}</p> </div> );}
Hook to access the currently authenticated user's information.