> ## Documentation Index
> Fetch the complete documentation index at: https://litprotocol-feat-rusk-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# validateDelegationAuthSig

# Function

> **validateDelegationAuthSig**(`params`)

Ensures a delegation signature is valid for the supplied session key. Run this on the server before trusting materials received over the wire.

## Parameters

<ParamField path="params.delegationAuthSig" type="AuthSig" required />

<ParamField path="params.sessionKeyUri" type="string" required>
  The public component (`sessionKeyPair.publicKey`).
</ParamField>

## Returns

<ResponseField name="void" type="void">
  Throws if validation fails.
</ResponseField>

## Example

```ts theme={null}
import { validateDelegationAuthSig } from '@lit-protocol/auth';

validateDelegationAuthSig({
  delegationAuthSig,
  sessionKeyUri: sessionKeyPair.publicKey,
});
```
