Skip to content

fix: drop googleapis_beta dependency#233

Merged
kevmoo merged 4 commits intomainfrom
app_check_inline
Apr 15, 2026
Merged

fix: drop googleapis_beta dependency#233
kevmoo merged 4 commits intomainfrom
app_check_inline

Conversation

@kevmoo
Copy link
Copy Markdown
Collaborator

@kevmoo kevmoo commented Apr 15, 2026

Trivial to inline!

@kevmoo kevmoo requested a review from brianquinlan April 15, 2026 21:24
@kevmoo
Copy link
Copy Markdown
Collaborator Author

kevmoo commented Apr 15, 2026

Let's drop a package that hasn't been updated in 2+ years!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 15, 2026

Coverage Report

✅ Coverage 74.58% meets 40% threshold

Total Coverage: 74.58%
Lines Covered: 5059/6783

Package Breakdown

Package Coverage
google_cloud_firestore 76.99%
firebase_admin_sdk 72.49%

Minimum threshold: 40%

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the dependency on package:googleapis_beta by refactoring the App Check token verification to use a manual REST call. The verifyAppCheckToken method has been updated to return a boolean instead of the raw API response. Review feedback highlights an outdated docstring regarding the return type and suggests making the JSON decoding logic more robust to handle potential parsing errors or type mismatches.

Comment thread packages/firebase_admin_sdk/lib/src/app_check/app_check_http_client.dart Outdated
Comment thread packages/firebase_admin_sdk/lib/src/app_check/app_check_http_client.dart Outdated
Comment thread packages/firebase_admin_sdk/lib/src/app_check/app_check_http_client.dart Outdated
Comment thread packages/firebase_admin_sdk/lib/src/app_check/app_check_http_client.dart Outdated
@kevmoo
Copy link
Copy Markdown
Collaborator Author

kevmoo commented Apr 15, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the googleapis_beta dependency by implementing a manual REST call for App Check token verification. Feedback indicates that the new JSON parsing logic for the alreadyConsumed field is too restrictive and should handle cases where the field is omitted by defaulting to false, preventing unnecessary exceptions.

@kevmoo kevmoo merged commit ef185d4 into main Apr 15, 2026
13 checks passed
@kevmoo kevmoo deleted the app_check_inline branch April 15, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants