authorize method
void
authorize()
Implementation
void authorize() async {
loader.value = true;
var response = await _apiService.authorize(
_aadhaarSdkController.clientId, _aadhaarSdkController.clientSecret);
return response.fold((l) {
loader.value = false;
if (l.message.toLowerCase().contains("host")) {
showToast(
"No Internet Available",
callback: () {
_aadhaarSdkController.failureCallback(804);
},
);
closeSdk();
} else {
showToast(
l.message,
callback: () {
closeSdk();
},
);
}
}, (r) {
loader.value = false;
});
}