Skip to content

Commit 0c7896c

Browse files
committed
Make sure the initial link is included for web
1 parent 3487c87 commit 0c7896c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/supabase_flutter/lib/src/supabase_auth.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,12 @@ class SupabaseAuth with WidgetsBindingObserver {
199199
// Needed to keep compatible with 5.0.0 and 6.0.0
200200
// https://pub.dev/packages/app_links/changelog
201201
// after app_links 6.0.0
202-
uri = await (_appLinks as dynamic).getInitialUri();
202+
//
203+
// app_links claims that the initial link will be included in the
204+
// `uriLinkStream`, but that is not the case for web
205+
if (kIsWeb) {
206+
uri = await (_appLinks as dynamic).getInitialLink();
207+
}
203208
}
204209
if (uri != null) {
205210
await _handleDeeplink(uri);

0 commit comments

Comments
 (0)