feat: update backend OCR parser, web app, mobile app camera/preview UI, tests, and documentation with sample images

This commit is contained in:
Rafhan Mazaya Fathurrahman committed 2026-07-02 13:33:57 +07:00
1 parent aa3233e411
commit bdb3a49742
71 files changed
+3360 -764

No files matched your search

+8
View File
@@ -28,7 +28,15 @@ class AuthNotifier extends StateNotifier<bool> {
},
);
if (response.data is! Map || response.data['data'] is! Map) {
throw Exception("Format respon server tidak valid (bukan JSON)");
}
final token = response.data['data']['token'];
if (token == null) {
throw Exception("Token otentikasi tidak ditemukan dalam respon");
}
final prefs = await SharedPreferences.getInstance();
await prefs.setString('auth_token', token);