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
A new method callback that throws an error if the call is not authenticated.