Skip to content

Commit 6adf93f

Browse files
committed
Use TransportOptions.defaults() consistently in factory methods
1 parent 1f68ae2 commit 6adf93f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

zitadel_client/zitadel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def with_access_token(
217217
:return: Configured Zitadel client instance.
218218
:see: https://zitadel.com/docs/guides/integrate/service-users/personal-access-token
219219
"""
220-
resolved = transport_options or TransportOptions()
220+
resolved = transport_options or TransportOptions.defaults()
221221

222222
def mutate_config(config: Configuration) -> None:
223223
Zitadel._apply_transport_options(config, resolved)
@@ -242,7 +242,7 @@ def with_client_credentials(
242242
:return: Configured Zitadel client instance with token auto-refresh.
243243
:see: https://zitadel.com/docs/guides/integrate/service-users/client-credentials
244244
"""
245-
resolved = transport_options or TransportOptions()
245+
resolved = transport_options or TransportOptions.defaults()
246246

247247
authenticator = ClientCredentialsAuthenticator.builder(
248248
host,
@@ -272,7 +272,7 @@ def with_private_key(
272272
:return: Configured Zitadel client instance using JWT assertion.
273273
:see: https://zitadel.com/docs/guides/integrate/service-users/private-key-jwt
274274
"""
275-
resolved = transport_options or TransportOptions()
275+
resolved = transport_options or TransportOptions.defaults()
276276

277277
authenticator = WebTokenAuthenticator.from_json(
278278
host,

0 commit comments

Comments
 (0)