-
Notifications
You must be signed in to change notification settings - Fork 985
Add Installations Auth Id token to FirebaseServerApp #8623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: da58c9a The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (186,037 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
hsubox76
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG so far but looks like it's still in draft status so I won't do a final review.
Changeset File Check ✅
|
Discussion
Add
installationsAuthTokenas a potential parameter when initializingFirebaseServerAppinstances. The token will be used by Installations in lieu of hitting local storage whengetIDandgetTokenare invoked.Note, this PR includes a change that throws an error if Remote Config's
fetchis invoked outside of a browser. Without this error, the PR would unlock Remote Config'sfetchinvocations in server environments, which previously failed due to Installations requiring IndexedDB at initalization. Use of Remote Config'sfetchin server enviornments is against the intent of use -- Remote Config is designed to cache and reusefetchresults by storing the results locally in IndexedDB. Unlocking server-side use of Remote Config'sfetchwould cause a significant increase of traffic on the service.Do not merge this change. It will unlock product SDKs to use Installations in server environments, but we should wait for any forward facing product SDK features to be scheduled before releasing this change to the public API surface.
Testing
Added a node test target to the Installations SDK, and wrote tests to invoke
getTokenandgetIdwithFirebaseServerAppinstances.API Changes
This conforms with the existing API proposal for
FirebaseServerAppwhich included an Installations Auth token.