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
662 stars 155 forks source link

fix: Add await to setInitialSession during initialization #832

Closed whymatter closed 4 months ago

whymatter commented 4 months ago

Fixes #831

In case there are no reasons why it shouldn't be awaited, I think we should await it.

bdlukaa commented 4 months ago

I believe we do not await for it because it may stuck the initialization for longer times.

Vinzent03 commented 4 months ago

Yeah when the device is offline the signOut() call in setInitialSession() could take a long time, which delays the overall initialization time.