Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
JwksFetcher
✓ from auth0_api_python.jwks_fetcher import JwksFetcher
✗ from auth0_api_python import JwksFetcher
JwksFetcher is in the jwks_fetcher submodule, not top-level
Auth0APIError
✓ from auth0_api_python.exceptions import Auth0APIError
✗ from auth0_api_python import Auth0APIError
Exception classes are in the exceptions submodule
TokenVerifier
✓ from auth0_api_python.token_verifier import TokenVerifier
✗ from auth0_api_python import TokenVerifier
TokenVerifier is in the token_verifier submodule
Initialize a TokenVerifier with your Auth0 domain and audience, then call verify() on a token.
import os
from auth0_api_python.token_verifier import TokenVerifier
domain = os.environ.get('AUTH0_DOMAIN', 'your-tenant.auth0.com')
audience = os.environ.get('AUTH0_AUDIENCE', 'https://your-api')
verifier = TokenVerifier(
domain=domain,
audience=audience,
algorithms=['RS256']
)
token = "your_access_token" # from Authorization header
payload = verifier.verify(token)
print(payload)
Debug
Known issues
gotchaThe SDK is in beta (1.0.0b9). APIs may change without warning. Pin to exact version in production.fixPin to exact version: auth0-api-python==1.0.0b9
affects: >=1.0.0b1, <1.0.0
breakingThe import path for TokenVerifier changed from auth0_api_python to auth0_api_python.token_verifier in the beta releases. Using the old path will raise ImportError.fixUse: from auth0_api_python.token_verifier import TokenVerifier
affects: >=1.0.0b5
gotchaThe SDK requires Authlib which has its own version constraints. Ensure your environment has compatible Authlib version (>=0.15, <1.0).fixCheck Authlib version: pip show authlib. If incompatible, upgrade: pip install 'authlib>=0.15,<1.0'
affects: all
gotchaTokenVerifier.verify() does NOT validate the token's expiration (exp claim) automatically. You must check it yourself.fixAfter verify(), check payload['exp'] against current time: if payload['exp'] < time.time(): raise ...
affects: all
Upgrade
Version history
1.0.0b9latest on PyPI · released Apr 30, 2026
Audit
Dependencies
authlibrequiredJWT verification and OAuth 2.0 primitives
requestsrequiredFetching JWKS keys from Auth0
flaskoptionalOptional Flask integration (example only, not required)