Function: authWhitelistWrapper()
function authWhitelistWrapper(handler, provider): MethodCallback;
Wraps a method callback to ensure that it is authenticated by whitelist user
Parameters
• handler: MethodCallback
The method callback to wrap.
• provider: AuthProvider
The function that provides authentication.
Returns
A new method callback that throws an error if the call is not authenticated by
provider
user