Update: 2026-08-01 05:29:35
This commit is contained in:
@@ -88,6 +88,12 @@ class PhoneAuthHelper {
|
||||
if (isRegistered) {
|
||||
// ✅ السائق مسجل مسبقًا - سجل دخوله واذهب إلى الصفحة الرئيسية
|
||||
final driver = data['message']['driver'];
|
||||
final jwt = data['message']['jwt'];
|
||||
|
||||
if (jwt != null) {
|
||||
await storage.write(key: BoxName.jwt, value: jwt.toString());
|
||||
}
|
||||
|
||||
// mySnackbarSuccess('Welcome back, ${driver['first_name']}!');
|
||||
|
||||
// حفظ بيانات السائق إذا أردت:
|
||||
|
||||
Reference in New Issue
Block a user