fastapi-jwt
fastapi-jwt copied to clipboard
authlib.jose.errors.BadSignatureError: bad_signature
when transferring an incorrect token, an error occurs that cannot be processed anywhere
Example: I transferred the token and deleted the last character
I received this exception:
authlib.jose.errors.BadSignatureError: bad_signature:
Hi everyone, had the same issue with an authlib backend. This exception isn't handled in lib code.
AuthlibJWTBackend is not mapping all jose's exceptions to BackendException, so the error mapping to HTTPException done when auto_error=True is not happening.