This commit is contained in:
Hamza-Ayed
2024-06-22 13:30:50 +03:00
parent 2bd242b28c
commit 1352fc8b36
48 changed files with 17 additions and 295 deletions

View File

@@ -24,7 +24,6 @@ class AuthController extends GetxController {
await _auth.signInWithCredential(credential);
return userCredential.user;
} catch (error) {
print("Error during Apple sign-in: $error");
return null;
}
}

View File

@@ -28,7 +28,6 @@ class GoogleSignInHelper {
}
return googleUser;
} catch (error) {
print('Google Sign-In error: $error');
return null;
}
}
@@ -49,7 +48,6 @@ class GoogleSignInHelper {
}
return googleUser;
} catch (error) {
print('Google Sign-In error: $error');
return null;
}
}
@@ -59,10 +57,7 @@ class GoogleSignInHelper {
try {
await _googleSignIn.signOut();
await _handleSignOut();
print('User signed out.');
} catch (error) {
print('Google Sign-Out error: $error');
}
} catch (error) {}
}
// Method to get the current signed-in user
@@ -80,11 +75,6 @@ class GoogleSignInHelper {
// Perform any additional sign-up tasks or API calls here
// For example, you can send the user data to your server for registration
print('passengerID = ${box.read(BoxName.passengerID)}');
print('email = ${box.read(BoxName.email)}');
print('name = ${box.read(BoxName.name)}');
print('passengerPhotoUrl = ${box.read(BoxName.passengerPhotoUrl)}');
}
// Method to handle sign-out process
@@ -111,7 +101,5 @@ class GoogleSignInHelper {
Get.offAll(OnBoardingPage());
// Perform any additional sign-out tasks or API calls here
// For example, you can notify your server about the user sign-out
print('User data cleared.');
}
}

View File

@@ -29,10 +29,7 @@ class TokenController extends GetxController {
isloading = false;
update();
print(res.request);
print(res.body);
var jsonToken = jsonDecode(res.body);
// print(jsonToken);
if (jsonToken['status'] == 'The token has been updated successfully.') {
Get.snackbar('token updated'.tr, '');
}