configure method
Implementation
@override
void configure(AuthServerPluginContext<TContext> context) {
final host = context.store;
if (host is! AuthAnonymousAccountMutationStore) {
throw StateError(
'AnonymousPlugin requires an AuthAnonymousAccountMutationStore. '
'Durable topologies must provide a transactional adapter; no '
'in-memory fallback is installed.',
);
}
if (host is! AuthUserDeletionCoordinatorHost) {
throw StateError('AnonymousPlugin requires a deletion-coordinator host.');
}
_mutationStore = host as AuthAnonymousAccountMutationStore;
_deletionCoordinator =
(host as AuthUserDeletionCoordinatorHost).userDeletionCoordinator;
_configured = true;
}