# September 24, 2025

## 3.2.0

**`(feat):`** Add `generateEndpointMetadata` configuration to generate endpoint metadata for each endpoints.
When you use a callback function to generate headers or auth tokens, the endpoint metadata will be passed to the callback.

```ts
const client = new Foo({
    ...,
    token: ({ endpointMetadata }) => {
        // generate token based on endpoint metadata
    }
});
```

To enable this, set `generateEndpointMetadata` to `true` in the `config` of your generator configuration.

```yml