Skip to content

Commit 8f2eb27

Browse files
committed
fix: oauth urls and routes fixed
1 parent dc039d3 commit 8f2eb27

File tree

6 files changed

+436
-436
lines changed

6 files changed

+436
-436
lines changed

lib/core/providers/supabase_provider.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ class SupabaseService extends StateHandler {
136136
// and added to your Supabase Auth Providers -> Google -> Redirect URIs
137137
// For desktop, usually 'http://localhost:port' or similar is used.
138138
final String? redirectUrl =
139-
kIsWeb
140-
? 'http://cookethflow.cookethcompany.xyz/dashboard' // For web development
139+
kIsWeb?
140+
// ? 'http://cookethflow.cookethcompany.xyz/dashboard' // For web development
141+
'http://localhost:3000/dashboard'
141142
: (Platform.isAndroid || Platform.isIOS
142143
? 'myapp://login-callback/'
143144
: null); // For mobile/desktop
@@ -161,8 +162,9 @@ class SupabaseService extends StateHandler {
161162
Future<String> signInWithGithub() async {
162163
try {
163164
final String? redirectUrl =
164-
kIsWeb
165-
? 'http://cookethflow.cookethcompany.xyz/dashboard' // For web development
165+
kIsWeb?
166+
// ? 'http://cookethflow.cookethcompany.xyz/dashboard'
167+
'http://localhost:3000/dashboard'
166168
: (Platform.isAndroid || Platform.isIOS
167169
? 'my.scheme://my-host'
168170
: null); // Replace with your actual scheme

lib/core/router/app_route_config.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ class AppRouteConfig {
2323
(context, state) => NoTransitionPage(child: SignupPage()),
2424
),
2525
GoRoute(
26-
path: '${RoutesPath.dashboard}/u/:username',
26+
path: RoutesPath.dashboard,
2727
name: RouteName.dashboard,
2828
pageBuilder: (context, state) {
29-
final username = state.pathParameters["username"];
3029
return NoTransitionPage(child: DashboardPage());
3130
},
3231
),

0 commit comments

Comments
 (0)