25-3/8/1
This commit is contained in:
@@ -94,8 +94,9 @@ class GoogleSignInHelper {
|
||||
// Retrieve driverID and emailDriver with added validation
|
||||
final driverID =
|
||||
(box.read(BoxName.driverID)!.toString()) ?? 'Unknown ID';
|
||||
final emailDriver =
|
||||
(box.read(BoxName.emailDriver)!.toString()) ?? 'Unknown Email';
|
||||
final emailDriver = EncryptionHelper.instance
|
||||
.encryptData(box.read(BoxName.emailDriver)!.toString()) ??
|
||||
'Unknown Email';
|
||||
|
||||
// Debug print statements
|
||||
print('Driver ID: $driverID');
|
||||
@@ -125,8 +126,7 @@ class GoogleSignInHelper {
|
||||
// Store driver information
|
||||
box.write(BoxName.driverID,
|
||||
(user.id) ?? 'Unknown ID'); // Ensure there's a fallback value
|
||||
box.write(BoxName.emailDriver,
|
||||
EncryptionHelper.instance.encryptData(user.email) ?? 'Unknown Email');
|
||||
box.write(BoxName.emailDriver, (user.email) ?? 'Unknown Email');
|
||||
}
|
||||
|
||||
// Method to handle Google Sign-Out
|
||||
|
||||
Reference in New Issue
Block a user