Skip to content

Follow redirects #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 4, 2024
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
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 @@
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(

Check warning on line 35 in supabase_auth/_sync/api.py

View check run for this annotation

Codecov / codecov/patch

supabase_auth/_sync/api.py#L35

Added line #L35 was not covered by tests
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