Login & User Management
useIsLoggedIn
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 Stablecoin Accounts are live! Learn more
import { useIsLoggedIn } from '@dynamic-labs/sdk-react-core';
const MyComponent = () => {
const isLoggedIn = useIsLoggedIn();
return (
<div>
{isLoggedIn ? (
<p>You are logged in!</p>
) : (
<p>Please log in to continue.</p>
)}
</div>
);
};
export default MyComponent;
Was this page helpful?