BeforeAnonymousAccountCreatedFunction typedef
BeforeAnonymousAccountCreatedFunction =
FutureOr<void> Function(Session session, {String? token, required Transaction? transaction})
Function to be called before a new anonymous account is created. This function should throw an exception if a new anonymous account is not allowed to be created for any reason, or return void otherwise. This mechanism is how an application would prevent abuse of the anonymous account creation process.
Implementation
typedef BeforeAnonymousAccountCreatedFunction =
FutureOr<void> Function(
Session session, {
String? token,
required Transaction? transaction,
});