giveConsent static method

Future<AuthPublicResponse> giveConsent({
  1. required String consentChallenge,
  2. required bool consent,
})

Implementation

static Future<SoftcorpGrpc.AuthPublicResponse> giveConsent(
    {required String consentChallenge, required bool consent}) async {
  checkServices();
  await applyTest();
  if (consentChallenge == "") {
    throw Exception("invalid consent challenge");
  }
  return connectService!
      .giveConsent(challenge: consentChallenge, consent: consent);
}