# Authorization Errors

## `Authorization.InvalidError`

Thrown when an EIP-7702 Authorization tuple is structurally invalid.

### Examples

```ts twoslash
// @noErrors
import { Authorization } from 'ox'

Authorization.fromTuple([
  '0x1',
  '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
  '0x3',
  '0x1'
])
// @error: Authorization.InvalidError: Invalid authorization.
// @error: Details: Expected [chainId, address, nonce] or [chainId, address, nonce, yParity, r, s].
```

**Source:** [src/core/Authorization.ts](https://github.com/wevm/ox/blob/main/src/core/Authorization.ts#L722)
