feat(appcheck): getTokenResult - #18492
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. |
demolaf
left a comment
There was a problem hiding this comment.
LGTM, there's a lint issue on CI.
Description
Adds a non-breaking
getTokenResult()API that returns anAppCheckTokenResultcontaining the token and its expiration time, while preserving the existinggetToken()string API and wire contract. Android, Apple, and Windows populate expiration metadata from their native SDKs; on web,expirationTimeisnullbecause the public Firebase JavaScript SDK only exposes the token string.Related Issues
.getToken()should return aAppCheckTokenclass #8970Local Verification
flutter testpassed forfirebase_app_checkandfirebase_app_check_platform_interface.firebase_app_check_web.flutter analyzepassed for the public, platform-interface, web, and integration-test packages.flutter build apk --debug --android-skip-build-dependency-validation.Checklist
///).melos run analyze) does not report any problems on my PR.Breaking Change