chore : delete auth package because each project has different auth , must be separated auth logic
This commit is contained in:
@@ -1,22 +1,19 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rasadyar_app/infrastructure/service/app_navigation_observer.dart';
|
||||
import 'package:rasadyar_app/presentation/routes/app_pages.dart';
|
||||
import 'package:rasadyar_auth/auth.dart';
|
||||
import 'package:rasadyar_auth/data/services/token_storage_service.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
import 'infrastructure/di/di.dart';
|
||||
import 'infrastructure/service/auth_service.dart';
|
||||
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await setupPreInjection();
|
||||
|
||||
await setupPreInjection();
|
||||
Get.put(TokenStorageService());
|
||||
await Get.find<TokenStorageService>().init();
|
||||
|
||||
|
||||
Get.put(AuthMiddleware());
|
||||
Get.put(AuthService());
|
||||
runApp(MyApp());
|
||||
|
||||
// runApp(DevicePreview(builder: (context) => ForDevicePreview(),));
|
||||
|
||||
Reference in New Issue
Block a user