-
Notifications
You must be signed in to change notification settings - Fork 894
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
Add Installations Auth Id token to FirebaseServerApp #8623
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 |
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
installationsAuthToken
as a potential parameter when initializingFirebaseServerApp
instances. The token will be used by Installations in lieu of hitting local storage whengetID
andgetToken
are invoked.Note, this PR includes a change that throws an error if Remote Config's
fetch
is invoked outside of a browser. Without this error, the PR would unlock Remote Config'sfetch
invocations in server environments, which previously failed due to Installations requiring IndexedDB at initalization. Use of Remote Config'sfetch
in server enviornments is against the intent of use -- Remote Config is designed to cache and reusefetch
results by storing the results locally in IndexedDB. Unlocking server-side use of Remote Config'sfetch
would 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
getToken
andgetId
withFirebaseServerApp
instances.API Changes
This conforms with the existing API proposal for
FirebaseServerApp
which included an Installations Auth token.