6/22/2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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, '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user