getPasskey method
Implementation
Future<PublicKeyCredential?> getPasskey(Map<String, dynamic> request) async {
try {
final options = CredentialLoginOptions.fromJson(request);
final credentials = await _manager.getCredentials(
passKeyOption: options,
fetchOptions: FetchOptionsAndroid(passKey: true),
);
return credentials.publicKeyCredential;
} catch (e) {
final exception = e.toStandardException();
debugPrint('❌ Error retrieving credential: $exception');
throw exception;
}
}