Update: 2026-07-21 20:50:03
This commit is contained in:
@@ -127,8 +127,8 @@ class LoginController extends GetxController {
|
||||
|
||||
if (jwt != null) {
|
||||
// نشفر الـ JWT بالتشفير الثلاثي قبل التخزين في GetStorage
|
||||
box.write(BoxName.jwt, (jwt));
|
||||
storage.write(key: BoxName.jwt, value: (jwt));
|
||||
box.write(BoxName.jwt, c(jwt));
|
||||
storage.write(key: BoxName.jwt, value: c(jwt));
|
||||
}
|
||||
|
||||
await EncryptionHelper.initialize();
|
||||
@@ -159,8 +159,8 @@ class LoginController extends GetxController {
|
||||
: decoded['jwt']);
|
||||
|
||||
if (jwt != null) {
|
||||
box.write(BoxName.jwt, (jwt));
|
||||
storage.write(key: BoxName.jwt, value: (jwt));
|
||||
box.write(BoxName.jwt, c(jwt));
|
||||
storage.write(key: BoxName.jwt, value: c(jwt));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -499,8 +499,8 @@ class LoginController extends GetxController {
|
||||
|
||||
// حفظ التوكن
|
||||
if (jwt != null) {
|
||||
box.write(BoxName.jwt, (jwt));
|
||||
await storage.write(key: BoxName.jwt, value: (jwt));
|
||||
box.write(BoxName.jwt, c(jwt));
|
||||
await storage.write(key: BoxName.jwt, value: c(jwt));
|
||||
}
|
||||
|
||||
box.write(BoxName.isVerified, '1');
|
||||
|
||||
Reference in New Issue
Block a user