supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
742 stars 183 forks source link

fix: Support custom access token #1073

Closed Vinzent03 closed 2 weeks ago

Vinzent03 commented 3 weeks ago

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Passing a custom access token to supabase_flutter doesn't work. I noticed that the SupabaseClient.dispose() method didn't work with custom access token as well.

What is the new behavior?

The realtime reconnection logic is moved to the Supabase class and SupabaseAuth is only initialized when no custom accessToken is passed.

Additional context

close #1072

dshukertjr commented 3 weeks ago

Thanks for this. I might not have the time to review it today, but will get to it as soon as possible!

gbaladi commented 1 week ago

@dshukertjr hi, is there any timetable that a new version of the client will be published with this fix?