Skip to content

Commit

Permalink
fix: handling more errors on initialDeeplink
Browse files Browse the repository at this point in the history
  • Loading branch information
dshukertjr committed Jul 20, 2022
1 parent de90849 commit 8306877
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/supabase_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,13 @@ class SupabaseAuth with WidgetsBindingObserver {
if (uri != null) {
_handleDeeplink(uri);
}
} on PlatformException {
} on PlatformException catch (err) {
_onErrorReceivingDeeplink(err.message ?? err.toString());
// Platform messages may fail but we ignore the exception
} on FormatException catch (err) {
_onErrorReceivingDeeplink(err.message);
} catch (err) {
_onErrorReceivingDeeplink(err.toString());
}
}

Expand Down

0 comments on commit 8306877

Please sign in to comment.