Skip to content
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

fix: add verify argument to _init_supabase_auth_client() #913

Merged
merged 1 commit into from
Aug 29, 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/_async/auth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def __init__(
persist_session: bool = True,
storage: AsyncSupportedStorage = AsyncMemoryStorage(),
http_client: Optional[AsyncClient] = None,
flow_type: AuthFlowType = "implicit"
flow_type: AuthFlowType = "implicit",
verify: bool = True,
):
"""Instantiate SupabaseAuthClient instance."""
if headers is None:
Expand All @@ -38,4 +39,5 @@ def __init__(
storage=storage,
http_client=http_client,
flow_type=flow_type,
verify=verify,
)
2 changes: 2 additions & 0 deletions supabase/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def _init_storage_client(
def _init_supabase_auth_client(
auth_url: str,
client_options: ClientOptions,
verify: bool = True,
) -> AsyncSupabaseAuthClient:
"""Creates a wrapped instance of the GoTrue Client."""
return AsyncSupabaseAuthClient(
Expand All @@ -246,6 +247,7 @@ def _init_supabase_auth_client(
storage=client_options.storage,
headers=client_options.headers,
flow_type=client_options.flow_type,
verify=verify,
)

@staticmethod
Expand Down
4 changes: 3 additions & 1 deletion supabase/_sync/auth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def __init__(
persist_session: bool = True,
storage: SyncSupportedStorage = SyncMemoryStorage(),
http_client: Optional[SyncClient] = None,
flow_type: AuthFlowType = "implicit"
flow_type: AuthFlowType = "implicit",
verify: bool = True,
):
"""Instantiate SupabaseAuthClient instance."""
if headers is None:
Expand All @@ -38,4 +39,5 @@ def __init__(
storage=storage,
http_client=http_client,
flow_type=flow_type,
verify=verify,
)
2 changes: 2 additions & 0 deletions supabase/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def _init_storage_client(
def _init_supabase_auth_client(
auth_url: str,
client_options: ClientOptions,
verify: bool = True,
) -> SyncSupabaseAuthClient:
"""Creates a wrapped instance of the GoTrue Client."""
return SyncSupabaseAuthClient(
Expand All @@ -246,6 +247,7 @@ def _init_supabase_auth_client(
storage=client_options.storage,
headers=client_options.headers,
flow_type=client_options.flow_type,
verify=verify,
)

@staticmethod
Expand Down