Skip to content

Commit 78b6d53

Browse files
authored
fix(auth): pass ConfigDict into with_config instead of kwargs (#1292)
1 parent 9315e0f commit 78b6d53

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/auth/src/supabase_auth/types.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,9 @@ class SignOutOptions(TypedDict):
819819
scope: NotRequired[SignOutScope]
820820

821821

822-
@with_config(extra="allow")
822+
@with_config(
823+
ConfigDict(extra="allow")
824+
) # pydantic <2.7.0 with_config does not accept kwargs
823825
class JWTHeader(TypedDict):
824826
alg: Literal["RS256", "ES256", "HS256"]
825827
typ: str
@@ -838,7 +840,9 @@ class RequiredClaims(TypedDict):
838840
session_id: str
839841

840842

841-
@with_config(extra="allow")
843+
@with_config(
844+
ConfigDict(extra="allow")
845+
) # pydantic <2.7.0 with_config does not accept kwargs
842846
class JWTPayload(TypedDict, total=False):
843847
iss: str
844848
sub: str
@@ -857,7 +861,9 @@ class ClaimsResponse(TypedDict):
857861
signature: bytes
858862

859863

860-
@with_config(extra="allow")
864+
@with_config(
865+
ConfigDict(extra="allow")
866+
) # pydantic <2.7.0 with_config does not accept kwargs
861867
class JWK(TypedDict, total=False):
862868
kty: Literal["RSA", "EC", "oct"]
863869
key_ops: List[str]

0 commit comments

Comments
 (0)