Skip to content

Commit e4aec8c

Browse files
fix(client): remove default= keyword from starlette client config.get calls (#770)
Authlib's Starlette integration was calling self.config.get(conf_key, default=None), which raises a TypeError when config is a plain dict. Changed all occurrences to use the positional form self.config.get(conf_key, None) so that both dicts and Config objects work seamlessly.
1 parent 62f41cc commit e4aec8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎authlib/integrations/starlette_client/integration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def load_config(oauth, name, params):
7575
rv = {}
7676
for k in params:
7777
conf_key = f"{name}_{k}".upper()
78-
v = oauth.config.get(conf_key, default=None)
78+
v = oauth.config.get(conf_key)
7979
if v is not None:
8080
rv[k] = v
8181
return rv

0 commit comments

Comments
 (0)