# default7702UserOpSigner | @aa-sdk/core

> Provides a default middleware function for signing user operations with a client account when using EIP-7702 delegated accounts. If the signer doesn't support `signAuthorization`, then this just runs the provided `signUserOperation` middleware. This function is only compatible with accounts using EntryPoint v0.7.0, and the account must have an implementation address defined in `getImplementationAddress()`.

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
const default7702UserOpSigner: (userOpSigner?) => ClientMiddlewareFn;
```

Defined in: [aa-sdk/core/src/middleware/defaults/7702signer.ts:18](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/middleware/defaults/7702signer.ts#L18)

Provides a default middleware function for signing user operations with a client account when using EIP-7702 delegated accounts.
If the signer doesn't support `signAuthorization`, then this just runs the provided `signUserOperation` middleware.
This function is only compatible with accounts using EntryPoint v0.7.0, and the account must have an implementation address defined in `getImplementationAddress()`.

## Deprecated

The EIP-7702 auth signature is now handled by the defaultUserOpSigner middleware. This middleware is no longer necessary.

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `userOpSigner?`
      </td>

      <td>
        `ClientMiddlewareFn`
      </td>

      <td>
        Optional user operation signer function
      </td>
    </tr>

  </tbody>
</table>

## Returns

`ClientMiddlewareFn`

A middleware function that signs EIP-7702 authorization tuples if necessary, and also uses the provided or default user operation signer to generate the user op signature.