Type Parameters
| Type Parameter | Description |
|---|---|
TArgs extends unknown[] | Array type representing the arguments of the callback |
TReturn | Type representing the return value of the callback |
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | (…args: TArgs) => Promise<TReturn> | The async function to wrap with authentication check |
Returns
A wrapped version of the callback that checks authenticationParameters
| Parameter | Type |
|---|---|
…args | TArgs |
Returns
Promise<TReturn>