Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions firebase_admin/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ def verify_id_token(id_token, app=None):
dict: A dictionary of key-value pairs parsed from the decoded JWT.

Raises:
ValueError: If the input parameters are invalid, or if the App was not
ValueError: If the JWT was found to be invalid, or if the App was not
initialized with a credentials.Certificate.
AppIdenityError: The JWT was found to be invalid, the message will contain details.
"""
token_generator = _get_token_generator(app)
return token_generator.verify_id_token(id_token)
Expand Down Expand Up @@ -192,8 +191,8 @@ def verify_id_token(self, id_token):
dict: A dictionary of key-value pairs parsed from the decoded JWT.

Raises:
ValueError: The app was not initialized with a credentials.Certificate instance.
AppIdenityError: The JWT was found to be invalid, the message will contain details.
ValueError: The JWT was found to be invalid, or the app was not initialized with a
credentials.Certificate instance.
"""
if not id_token:
raise ValueError('Illegal ID token provided: {0}. ID token must be a non-empty '
Expand Down