Closed dshukertjr closed 2 years ago
Currently using supabase-flutter, there is no way to detect the exception thrown to parse deep links other than the initial link using initialSession
initialSession
try { await SupabaseAuth.initialSession; } catch(error) { // handle initial error here }
This PR allows the users to use onAuthStateChange to listen to exceptions thrown during deep link parsing like this:
onAuthStateChange
supabase.auth.onAuthStateChange.listen( (data) { // handle auth state change here }, onError: (error) { // handle parsing error here. } );
Fixes https://github.com/supabase-community/supabase-flutter/issues/211
Feature Proposal
Currently using supabase-flutter, there is no way to detect the exception thrown to parse deep links other than the initial link using
initialSession
This PR allows the users to use
onAuthStateChange
to listen to exceptions thrown during deep link parsing like this:Fixes https://github.com/supabase-community/supabase-flutter/issues/211