TokenResolver<T> = (req:T) =>Promise<string|undefined>
Callback that resolves an access token from the incoming request.
When provided, this takes precedence over the default Authorization: Bearer header extraction.
| Type Parameter | Description |
|---|---|
T | Type of the request |
| Parameter | Type |
|---|---|
req | T |
Promise<string | undefined>