fix flutter mfa app redirect login

This commit is contained in:
dshukertjr committed 2023-05-04 19:53:02 +09:00
1 parent aca4874480
commit 0ef5b97dfb
1 file changed
+2 -8
+2 -8
View File
@@ -10,9 +10,8 @@ import 'package:mfa_app/pages/mfa/enroll_page.dart';
void main() async {
await Supabase.initialize(
url: 'https://mmovxqiqcxyufdudlcnl.supabase.co',
anonKey:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1tb3Z4cWlxY3h5dWZkdWRsY25sIiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODMwMzYzMjIsImV4cCI6MTk5ODYxMjMyMn0.gJbycbKjVT0L4_csVRjyYBxnUU3X1ZCMwbxMi7962Rw',
url: 'YOUR_SUPABASE_URL',
anonKey: 'YOUR_ANON_KEY',
);
runApp(const MyApp());
}
@@ -59,11 +58,6 @@ final _router = GoRouter(
return RegisterPage.route;
}
// user with a session can visit /mfa route
if (state.location.contains('/mfa') == true) {
return null;
}
final assuranceLevelData =
supabase.auth.mfa.getAuthenticatorAssuranceLevel();