Higher-order hook that wraps a callback with authentication enforcement.
This ensures that the wrapped function can only be called when the user is signed in.
Type Parameters
TArgsextendsunknown[]
Array type representing the arguments of the callback
TReturn
Type representing the return value of the callback
Higher-order hook that wraps a callback with authentication enforcement. This ensures that the wrapped function can only be called when the user is signed in.