authenticatedGate<TContext> function
Creates a gate callback that allows only authenticated principals.
Implementation
AuthGateCallback<TContext> authenticatedGate<TContext>() {
return (AuthGateEvaluationContext<TContext> context) =>
context.principal != null;
}