authenticateCustom method
Implementation
@override
Future<model.Session> authenticateCustom({
required String id,
bool create = true,
String? username,
Map<String, String>? vars,
}) async {
final request = AuthenticateCustomRequest()
..create_2 = BoolValue(value: create)
..account = (AccountCustom()
..id = id
..vars.addAll(vars ?? {}));
if (username != null) {
request.username = username;
}
final res = await _client.authenticateCustom(request);
return model.Session(
created: res.created,
token: res.token,
refreshToken: res.refreshToken,
);
}