Update: 2026-05-06 04:55:22
This commit is contained in:
@@ -7,6 +7,7 @@ import '../../../core/storage/secure_storage.dart';
|
||||
import '../../../app/routes/app_pages.dart';
|
||||
import '../../../core/utils/logger.dart';
|
||||
import '../../../core/utils/app_snackbar.dart';
|
||||
import '../../../core/services/push_notification_service.dart';
|
||||
|
||||
class AuthController extends GetxController {
|
||||
final Dio _dio = DioClient().client;
|
||||
@@ -56,13 +57,17 @@ class AuthController extends GetxController {
|
||||
deviceName = iosInfo.name;
|
||||
}
|
||||
|
||||
// Get FCM token for notifications
|
||||
final pushToken = await PushNotificationService.getToken();
|
||||
|
||||
final response = await _dio.post('auth/mobile/verify-otp', data: {
|
||||
'phone': phone.value,
|
||||
'otp': otp,
|
||||
'device_id': deviceId,
|
||||
'device_name': deviceName,
|
||||
'platform': Platform.operatingSystem,
|
||||
'app_version': '1.0.0', // TODO: Get from package_info_plus
|
||||
'app_version': '1.0.0',
|
||||
'push_token': pushToken,
|
||||
});
|
||||
|
||||
if (response.statusCode == 200) {
|
||||
|
||||
Reference in New Issue
Block a user