File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,7 @@ class GoTrueClient {
134134 /// Getter for the headers
135135 Map <String , String > get headers => _headers;
136136
137- /// Returns the current logged in user, if any;
138- ///
139- /// Use [currentSession] to determine whether the user has an active session,
140- /// because [currentUser] can be null with an active session, such as
141- /// when the user signed up using email and password but has not confirmed
142- /// their email address.
137+ /// Returns the current logged in user, asociated to [currentSession] if any;
143138 User ? get currentUser => _currentSession? .user;
144139
145140 /// Returns the current session, if any;
@@ -745,7 +740,7 @@ class GoTrueClient {
745740 options: options);
746741 final userResponse = UserResponse .fromJson (response);
747742
748- _currentSession = currentSession! .copyWith (user: userResponse.user);
743+ _currentSession = currentSession? .copyWith (user: userResponse.user);
749744 notifyAllSubscribers (AuthChangeEvent .userUpdated);
750745
751746 return userResponse;
You can’t perform that action at this time.
0 commit comments