Skip to content

Commit 2efee0c

Browse files
committed
Fix auth0-python: SignatureVerifier.verify_signature is sync, not async
The typeshed stub incorrectly declares verify_signature as async def. The actual auth0-python implementation is synchronous. See: https://github.com/auth0/auth0-python/blob/master/auth0/authentication/token_verifier.py#L103
1 parent 843c1fd commit 2efee0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/auth0-python/auth0/authentication/token_verifier.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from typing import ClassVar
44
class SignatureVerifier:
55
DISABLE_JWT_CHECKS: ClassVar[dict[str, bool]]
66
def __init__(self, algorithm: str) -> None: ...
7-
async def verify_signature(self, token: str) -> dict[str, Incomplete]: ...
7+
def verify_signature(self, token: str) -> dict[str, Incomplete]: ...
88

99
class SymmetricSignatureVerifier(SignatureVerifier):
1010
def __init__(self, shared_secret: str, algorithm: str = "HS256") -> None: ...

0 commit comments

Comments
 (0)