Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions gotrue/_async/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ def _create_request_headers(self, *, jwt: str) -> Dict[str, str]:
The headers required for a successful request statement with the
supabase backend.
"""
headers = {**self.headers}
headers["Authorization"] = f"Bearer {jwt}"
headers = {**self.headers, "Authorization": f"Bearer {jwt}"}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function AsyncGoTrueAPI._create_request_headers refactored with the following changes:

return headers

async def sign_out(self, *, jwt: str) -> None:
Expand Down
3 changes: 1 addition & 2 deletions gotrue/_sync/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ def _create_request_headers(self, *, jwt: str) -> Dict[str, str]:
The headers required for a successful request statement with the
supabase backend.
"""
headers = {**self.headers}
headers["Authorization"] = f"Bearer {jwt}"
headers = {**self.headers, "Authorization": f"Bearer {jwt}"}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function SyncGoTrueAPI._create_request_headers refactored with the following changes:

return headers

def sign_out(self, *, jwt: str) -> None:
Expand Down