firebase_admin.app_check module

Firebase App Check module.

Functions

verify_token

firebase_admin.app_check.verify_token(token:str,app=None)Dict[str,Any]

Verifies a Firebase App Check token.

Parameters:
  • token – A token from App Check.

  • app – An App instance (optional).

Returns:

The token’s decoded claims.

Return type:

Dict[str, Any]

Raises:
  • ValueError – If the app’sproject_id is invalid or unspecified,

  • or if the token's headers orpayload are invalid.

  • PyJWKClientError – If PyJWKClient fails to fetch a valid signing key.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-12-05 UTC.