AuthDeployment<TContext>.custom constructor
AuthDeployment<TContext>.custom ({
- required AuthOptions<
TContext> options, - required AuthConfig configuration,
- 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',
);
}
}