AuthDeployment<TContext>.custom constructor

AuthDeployment<TContext>.custom({
  1. required AuthOptions<TContext> options,
  2. required AuthConfig configuration,
  3. required AuthProxyPolicy proxyPolicy,
})

Creates an advanced custom bundle without applying a preset.

Implementation

AuthDeployment.custom({
  required this.options,
  required this.configuration,
  required this.proxyPolicy,
}) {
  final boundary = options.productionBoundary;
  if (options.runtimeMode == AuthRuntimeMode.production &&
      (boundary == null || !boundary.proxyPolicy.equivalentTo(proxyPolicy))) {
    throw ArgumentError.value(
      proxyPolicy,
      'proxyPolicy',
      'must match the production boundary carried by AuthOptions',
    );
  }
}