Skip to content

Commit

Permalink
Revert "Add jwt headers in JsonClient if exist"
Browse files Browse the repository at this point in the history
This reverts commit a079047.
  • Loading branch information
TheoLechemia committed Sep 14, 2023
1 parent eb2d52b commit edab960
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils_flask_sqla/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,5 @@ def open(self, *args, **kwargs):
}
)
)
# the set_logged_user_jwt add a jwt attribute to client with the current logged user
jwt = getattr(self, "jwt", None)
if jwt:
jwt_headers = Headers({"Authorization": f"Bearer {jwt}"})
headers.extend(jwt_headers)

kwargs["headers"] = headers
return super().open(*args, **kwargs)

0 comments on commit edab960

Please sign in to comment.