Skip to main content

verify-firebase-token

Just one file that verifies Firebase Authentication ID tokens, replacing firebase_admin.verify_token.

I made this because:

  1. firebase_admin is a massive library and I was only using it for decoding jwt tokens.
  2. firebase_admin.verify_token constantly calls Google's servers for CERTS. I made an in memory cache for this.

Dependencies

  1. PyJWT for jwt verifying and parsing
  2. cryptography for extracting the public keys from Google's certificates
  3. requests for getting Google's certificates

Installation

$ pip install verify-firebase-token

Verifying tokens

from verify_firebase_token import verify_token

result = verify_token("<TOKEN>", "<FIREBASE_PROJECT_ID>")

The result is a dictionary with the JWT payload. If the token cannot be verified, the raw JWT errors will be raised.

Metadata

Release files for verify-firebase-token 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for verify-firebase-token 0.1.3
File Size Uploaded Provenance Actions
verify_firebase_token-0.1.3.tar.gz 2.4 kB Without provenance Details for verify_firebase_token-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for verify-firebase-token 0.1.3
File Interpreter ABI Platform Actions
verify_firebase_token-0.1.3-py3-none-any.whl Python 3 none any Details for verify_firebase_token-0.1.3-py3-none-any.whl

Total release size: 5.3 kB

Release files / verify_firebase_token-0.1.3.tar.gz

Download URL verify_firebase_token-0.1.3.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
763a48d3bc6ec97396d4525abff28e460df37e680788cbdd9f8359c4325754df
BLAKE2b-256 checksum
How to use checksums
8b4b8e34ee704881c359185ca868dad527b259ae0af2a6e0d6217dc200435e1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.10 Darwin/23.2.0

Release files / verify_firebase_token-0.1.3-py3-none-any.whl

Download URL verify_firebase_token-0.1.3-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20e5e58af0dbf2b8480a4e8feeaeb776a07b66dd6af47c23313355cd82af8697
BLAKE2b-256 checksum
How to use checksums
cbb21f13caf5ce8effb4a4a717d84721fc8d3eca78913d52f6f8dd755e571c2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.10 Darwin/23.2.0

Security for verify-firebase-token 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page