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