guestGate<TContext> function

AuthGateCallback<TContext> guestGate<TContext>()

Creates a gate callback that allows only guests.

Implementation

AuthGateCallback<TContext> guestGate<TContext>() {
  return (AuthGateEvaluationContext<TContext> context) =>
      context.principal == null;
}