Skip to content

Commit

Permalink
fix: add verify argument to _init_supabase_auth_client() (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiy-telegin authored Aug 29, 2024
1 parent 425bcea commit cb6743b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
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

0 comments on commit cb6743b

Please sign in to comment.