Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion firebase_admin/app_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _AppCheckService:
_APP_CHECK_ISSUER = 'https://firebaseappcheck.googleapis.com/'
_JWKS_URL = 'https://firebaseappcheck.googleapis.com/v1/jwks'
_VERIFY_URL_FORMAT = (
'https://firebaseappcheck.googleapis.com/v1/projects/{project_id}:verifyAppCheckToken'
'https://firebaseappcheck.googleapis.com/v1beta/projects/{project_id}:verifyAppCheckToken'
)
_project_id = None
_scoped_project_id = None
Expand Down
4 changes: 2 additions & 2 deletions tests/test_app_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def test_verify_token_with_consume_true_not_consumed(self, mocker):
assert payload == expected

expected_url = (
f"https://firebaseappcheck.googleapis.com/v1/projects/{PROJECT_ID}:verifyAppCheckToken"
f"https://firebaseappcheck.googleapis.com/v1beta/projects/{PROJECT_ID}:verifyAppCheckToken"
)
mock_body.assert_called_once_with(
"post", expected_url, json={"app_check_token": "encoded"}
Expand All @@ -340,7 +340,7 @@ def test_verify_token_with_consume_true_already_consumed(self, mocker):
assert payload == expected

expected_url = (
f"https://firebaseappcheck.googleapis.com/v1/projects/{PROJECT_ID}:verifyAppCheckToken"
f"https://firebaseappcheck.googleapis.com/v1beta/projects/{PROJECT_ID}:verifyAppCheckToken"
)
mock_body.assert_called_once_with(
"post", expected_url, json={"app_check_token": "encoded"}
Expand Down
Loading