Skip to main content

Function: authenticatedWrapper()

function authenticatedWrapper(handler): MethodCallback;

Wraps a method callback to ensure that it is authenticated.

Parameters

handler: MethodCallback

The method callback to wrap.

Returns

MethodCallback

A new method callback that throws an error if the call is not authenticated.


Coinweb © 2024