updateConfig method
Implementation
@override
Future<Map> updateConfig(
String token, Map<String, dynamic> remoteAuth) async {
final String baseUrl = await getBaseUrl;
var url = Uri.parse("$baseUrl/api/v1/issuing/config/update");
var bodyData = {"remote_auth": remoteAuth};
var jsonBody = jsonEncode(bodyData);
var response = await http.post(
url,
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer $token"
},
body: jsonBody,
);
var data = jsonDecode(response.body);
//print(data);
return data;
}