Skip to content

Commit cb6743b

Browse files
fix: add verify argument to _init_supabase_auth_client() (#913)
1 parent 425bcea commit cb6743b

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

supabase/_async/auth_client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def __init__(
2222
persist_session: bool = True,
2323
storage: AsyncSupportedStorage = AsyncMemoryStorage(),
2424
http_client: Optional[AsyncClient] = None,
25-
flow_type: AuthFlowType = "implicit"
25+
flow_type: AuthFlowType = "implicit",
26+
verify: bool = True,
2627
):
2728
"""Instantiate SupabaseAuthClient instance."""
2829
if headers is None:
@@ -38,4 +39,5 @@ def __init__(
3839
storage=storage,
3940
http_client=http_client,
4041
flow_type=flow_type,
42+
verify=verify,
4143
)

supabase/_async/client.py

+2
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def _init_storage_client(
237237
def _init_supabase_auth_client(
238238
auth_url: str,
239239
client_options: ClientOptions,
240+
verify: bool = True,
240241
) -> AsyncSupabaseAuthClient:
241242
"""Creates a wrapped instance of the GoTrue Client."""
242243
return AsyncSupabaseAuthClient(
@@ -246,6 +247,7 @@ def _init_supabase_auth_client(
246247
storage=client_options.storage,
247248
headers=client_options.headers,
248249
flow_type=client_options.flow_type,
250+
verify=verify,
249251
)
250252

251253
@staticmethod

supabase/_sync/auth_client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def __init__(
2222
persist_session: bool = True,
2323
storage: SyncSupportedStorage = SyncMemoryStorage(),
2424
http_client: Optional[SyncClient] = None,
25-
flow_type: AuthFlowType = "implicit"
25+
flow_type: AuthFlowType = "implicit",
26+
verify: bool = True,
2627
):
2728
"""Instantiate SupabaseAuthClient instance."""
2829
if headers is None:
@@ -38,4 +39,5 @@ def __init__(
3839
storage=storage,
3940
http_client=http_client,
4041
flow_type=flow_type,
42+
verify=verify,
4143
)

supabase/_sync/client.py

+2
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def _init_storage_client(
237237
def _init_supabase_auth_client(
238238
auth_url: str,
239239
client_options: ClientOptions,
240+
verify: bool = True,
240241
) -> SyncSupabaseAuthClient:
241242
"""Creates a wrapped instance of the GoTrue Client."""
242243
return SyncSupabaseAuthClient(
@@ -246,6 +247,7 @@ def _init_supabase_auth_client(
246247
storage=client_options.storage,
247248
headers=client_options.headers,
248249
flow_type=client_options.flow_type,
250+
verify=verify,
249251
)
250252

251253
@staticmethod

0 commit comments

Comments
 (0)