prepareRegister method

Future<String> prepareRegister({
  1. required String userIdentifier,
  2. required String password,
  3. dynamic hint,
})
override

Get the user input from the user client

This is used when the register endpoint should only be called from the backend and not the clients.

For full register see register()

Implementation

Future<String> prepareRegister(
    {required String userIdentifier,
    required String password,
    dynamic hint}) {
  var arg0 = _platform.api2wire_String(userIdentifier);
  var arg1 = _platform.api2wire_String(password);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) =>
        _platform.inner.wire_prepare_register(port_, arg0, arg1),
    parseSuccessData: _wire2api_String,
    parseErrorData: _wire2api_FrbAnyhowException,
    constMeta: kPrepareRegisterConstMeta,
    argValues: [userIdentifier, password],
    hint: hint,
  ));
}