From 50550f79bfe93a148219482dbf60f9743d59def1 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Mon, 3 Nov 2025 10:03:05 -0300 Subject: [PATCH] fix(auth): pass ConfigDict into with_config instead of kwargs --- src/auth/src/supabase_auth/types.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/auth/src/supabase_auth/types.py b/src/auth/src/supabase_auth/types.py index de5fd7f6..eca7b1b0 100644 --- a/src/auth/src/supabase_auth/types.py +++ b/src/auth/src/supabase_auth/types.py @@ -819,7 +819,9 @@ class SignOutOptions(TypedDict): scope: NotRequired[SignOutScope] -@with_config(extra="allow") +@with_config( + ConfigDict(extra="allow") +) # pydantic <2.7.0 with_config does not accept kwargs class JWTHeader(TypedDict): alg: Literal["RS256", "ES256", "HS256"] typ: str @@ -838,7 +840,9 @@ class RequiredClaims(TypedDict): session_id: str -@with_config(extra="allow") +@with_config( + ConfigDict(extra="allow") +) # pydantic <2.7.0 with_config does not accept kwargs class JWTPayload(TypedDict, total=False): iss: str sub: str @@ -857,7 +861,9 @@ class ClaimsResponse(TypedDict): signature: bytes -@with_config(extra="allow") +@with_config( + ConfigDict(extra="allow") +) # pydantic <2.7.0 with_config does not accept kwargs class JWK(TypedDict, total=False): kty: Literal["RSA", "EC", "oct"] key_ops: List[str]