registerCredentialsWithUrl static method
Use a registration link to create and register a credential.
registerUri
is the URI used to create a credential.
Returns the Credential
that was created and registered with Beyond Identity.
Implementation
static Future<Credential> registerCredentialsWithUrl(String registerUri) async {
final Map<String, dynamic>? credentialMap = await _channel.invokeMapMethod('registerCredentialsWithUrl', {
'registerUri': registerUri,
});
if (credentialMap != null) {
try {
return Credential.mapToCredential(credentialMap);
} on Exception {
rethrow;
}
} else {
throw Exception("Error getting values from platform for registerCredentialsWithUrl");
}
}