getVerificationStatus method
Get verification session status
Implementation
@override
Future<Map<String, dynamic>> getVerificationStatus(String sessionId) async {
try {
final response = await http.get(
Uri.parse('$_baseApiUrl/verification_sessions/$sessionId'),
headers: getHeaders(),
);
if (response.statusCode == 200) {
return jsonDecode(response.body);
} else {
throw Exception('Failed to get verification status: ${response.statusCode}');
}
} catch (e) {
throw Exception('Error getting verification status: $e');
}
}