Remove supabase reference from the app
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:patient_manager/components/signInOrRegister.dart';
|
||||
//import 'package:patient_manager/main.dart';
|
||||
import 'package:patient_manager/pages/home.dart';
|
||||
//import 'package:supabase_flutter/supabase_flutter.dart';
|
||||
import 'package:supertokens_flutter/supertokens.dart';
|
||||
|
||||
class AuthCheck extends StatelessWidget {
|
||||
@@ -23,25 +21,5 @@ class AuthCheck extends StatelessWidget {
|
||||
return const SignInOrRegister();
|
||||
}
|
||||
});
|
||||
// return StreamBuilder<AuthState>(
|
||||
// stream: client.auth.onAuthStateChange.distinct(),
|
||||
// builder: (context, snapshot) {
|
||||
// if (snapshot.connectionState == ConnectionState.active) {
|
||||
// final user = snapshot.data?.session;
|
||||
// if (user == null) {
|
||||
// // User not authenticated, show login screen
|
||||
// return const SignInOrRegister();
|
||||
// //Navigator.of(context).pushNamed('/signin');
|
||||
// } else {
|
||||
// // User authenticated, show home screen
|
||||
// return const Home();
|
||||
// //Navigator.of(context).pushNamed('/homme');
|
||||
// }
|
||||
// }
|
||||
|
||||
// // Connection state not active, show loading indicator
|
||||
// return const CircularProgressIndicator();
|
||||
// },
|
||||
// );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user