Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 1fa7fd2

Browse files
authored
fix: follow redirects
2 parents e7fdc2d + 4a18e21 commit 1fa7fd2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

supabase_auth/_async/gotrue_base_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def __init__(
2323
):
2424
self._url = url
2525
self._headers = headers
26-
self._http_client = http_client or AsyncClient(verify=bool(verify))
26+
self._http_client = http_client or AsyncClient(
27+
verify=bool(verify), follow_redirects=True
28+
)
2729

2830
async def __aenter__(self) -> Self:
2931
return self

supabase_auth/_sync/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def __init__(
3232
self.url = url
3333
self.headers = headers
3434
self.cookie_options = cookie_options
35-
self.http_client = http_client or SyncClient(verify=bool(verify))
35+
self.http_client = http_client or SyncClient(
36+
verify=bool(verify), follow_redirects=True
37+
)
3638

3739
def __enter__(self) -> SyncGoTrueAPI:
3840
return self

supabase_auth/_sync/gotrue_base_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def __init__(
2323
):
2424
self._url = url
2525
self._headers = headers
26-
self._http_client = http_client or SyncClient(verify=bool(verify))
26+
self._http_client = http_client or SyncClient(
27+
verify=bool(verify), follow_redirects=True
28+
)
2729

2830
def __enter__(self) -> Self:
2931
return self

0 commit comments

Comments
 (0)