firebase_admin.phone_number_verification module
Stay organized with collections
Save and categorize content based on your preferences.
Firebase Phone Number Verification module.
This module contains functions for verifying JWTs related to the Firebase
Phone Number Verification service.
Exceptions
ExpiredTokenErrorexception firebase_admin.phone_number_verification.ExpiredTokenError(message, cause=None, http_response=None) |
|---|
|
Bases: InvalidTokenError
Raised when a Firebase Phone Number Verification token is expired.
|
InvalidTokenErrorexception firebase_admin.phone_number_verification.InvalidTokenError(message, cause=None, http_response=None) |
|---|
|
Bases: InvalidArgumentError
Raised when a Firebase Phone Number Verification token is invalid.
|
Classes
PhoneNumberVerificationTokenclass firebase_admin.phone_number_verification.PhoneNumberVerificationToken(claims) |
|---|
|
Bases: dict
Represents a verified Firebase Phone Number Verification token.
This class behaves like a dictionary, allowing access to the decoded claims.
It also provides convenience properties for common claims.
|
property audience: str |
|---|
|
Returns the audience for which this token is intended.
|
|
property claims |
|---|
|
Returns the entire map of claims.
|
|
property exp: int |
|---|
|
Returns the expiration time since the Unix epoch.
|
|
property iat: int |
|---|
|
Returns the issued-at time since the Unix epoch.
|
|
property issuer: str |
|---|
|
Returns the issuer identifier for the issuer of the response.
|
|
property phone_number: str |
|---|
|
Returns the phone number of the user.
This corresponds to the ‘sub’ claim in the JWT.
|
|
property sub: str |
|---|
|
Returns the sub (subject) of the token, which is the phone number.
|
|
Functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-09 UTC.
[null,null,["Last updated 2026-04-09 UTC."],[],[]]