login method
Future<UserLoginOut>
login({
- required String baseUrl,
- required String authToken,
- required String userIdentifier,
- required String password,
- dynamic hint,
override
Login the user to this app
Does the login requests. 1. for auth, 2nd to get the keys.
If there are more data in the backend, then it is possible to call it via the jwt what is returned by the done login request.
The other backend can validate the jwt
Implementation
Future<UserLoginOut> login(
{required String baseUrl,
required String authToken,
required String userIdentifier,
required String password,
dynamic hint}) {
var arg0 = _platform.api2wire_String(baseUrl);
var arg1 = _platform.api2wire_String(authToken);
var arg2 = _platform.api2wire_String(userIdentifier);
var arg3 = _platform.api2wire_String(password);
return _platform.executeNormal(FlutterRustBridgeTask(
callFfi: (port_) =>
_platform.inner.wire_login(port_, arg0, arg1, arg2, arg3),
parseSuccessData: _wire2api_user_login_out,
parseErrorData: _wire2api_FrbAnyhowException,
constMeta: kLoginConstMeta,
argValues: [baseUrl, authToken, userIdentifier, password],
hint: hint,
));
}