diff --git a/gotrue/types.py b/gotrue/types.py index 1244ab78..72b54cc7 100644 --- a/gotrue/types.py +++ b/gotrue/types.py @@ -17,9 +17,7 @@ def determine_session_or_user_model_from_response( response: Response, ) -> Union[Type[Session], Type[User]]: - if "access_token" in response.json(): - return Session - return User + return Session if "access_token" in response.json() else User class BaseModelFromResponse(BaseModel):