refactor: migrate JWT storage to secure storage, update assets, and enhance login verification logic.
This commit is contained in:
@@ -312,8 +312,7 @@ class ImageController extends GetxController {
|
||||
required String filename,
|
||||
required String methodLabel,
|
||||
}) async {
|
||||
final jwt = box.read(BoxName.jwt);
|
||||
final String token = jwt != null ? r(jwt).split(AppInformation.addd)[0] : '';
|
||||
final String token = await storage.read(key: BoxName.jwt) ?? '';
|
||||
final String fingerPrint = box.read(BoxName.deviceFingerprint)?.toString() ?? '';
|
||||
final int fileSizeBytes = await file.length();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user