Currently when the supabase_flutter SDK obtains the initial session from local storage and calls setInitialSession() method of gotrue, the _currentUser is not set causing a state where auth.currentSession is not null, but auth.currentUser being null. This PR fixes it.
What kind of change does this PR introduce?
Currently when the supabase_flutter SDK obtains the initial session from local storage and calls
setInitialSession()
method of gotrue, the_currentUser
is not set causing a state whereauth.currentSession
is not null, butauth.currentUser
being null. This PR fixes it.Related https://github.com/supabase/supabase-flutter/issues/805