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

# `useSignInMessage`

Hook for reading the Sign in With Farcaster message and signature used to authenticate the user.

If you're providing the message and signature to a backend API, you may want to use this hook.

```tsx theme={"system"}
import { useSignInMessage } from '@farcaster/auth-kit';

function App() {
  const { message, signature } = useSignInMessage();

  return (
    <div>
      <p>You signed: {message}</p>
      <p>Your signature: {signature}</p>
    </div>
  );
}
```

## Returns

```ts theme={"system"}
{
  message: string;
  signature: Hex;
}
```

| Parameter   | Description                                        |
| ----------- | -------------------------------------------------- |
| `message`   | SIWE message signed by the user.                   |
| `signature` | Signature produced by the user's Farcaster wallet. |
