Skip to content

Commit

Permalink
fix: follow redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks authored Jun 4, 2024
2 parents e7fdc2d + 4a18e21 commit 1fa7fd2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion supabase_auth/_async/gotrue_base_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def __init__(
):
self._url = url
self._headers = headers
self._http_client = http_client or AsyncClient(verify=bool(verify))
self._http_client = http_client or AsyncClient(
verify=bool(verify), follow_redirects=True
)

async def __aenter__(self) -> Self:
return self
Expand Down
4 changes: 3 additions & 1 deletion supabase_auth/_sync/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def __init__(
self.url = url
self.headers = headers
self.cookie_options = cookie_options
self.http_client = http_client or SyncClient(verify=bool(verify))
self.http_client = http_client or SyncClient(
verify=bool(verify), follow_redirects=True
)

def __enter__(self) -> SyncGoTrueAPI:
return self
Expand Down
4 changes: 3 additions & 1 deletion supabase_auth/_sync/gotrue_base_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def __init__(
):
self._url = url
self._headers = headers
self._http_client = http_client or SyncClient(verify=bool(verify))
self._http_client = http_client or SyncClient(
verify=bool(verify), follow_redirects=True
)

def __enter__(self) -> Self:
return self
Expand Down

0 comments on commit 1fa7fd2

Please sign in to comment.