> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useIsSignedIn

```ts theme={null}
function useIsSignedIn(): {
  isSignedIn: boolean;
};
```

Hook to check if a user is currently signed in.
Use this to gate authenticated-only features in your application.

## Returns

```ts theme={null}
{
  isSignedIn: boolean;
}
```

| Name         | Type      |
| ------------ | --------- |
| `isSignedIn` | `boolean` |

## Example

```tsx lines theme={null}
function AuthGuard({ children }) {
  const { isSignedIn } = useIsSignedIn();

  if (!isSignedIn) {
    return <Navigate to="/sign-in" />;
  }

  return children;
}
```
