Skip to content

Conversation

@alex-friedl
Copy link
Collaborator

Closes #220

@alex-friedl alex-friedl self-assigned this Jan 13, 2026
@alex-friedl alex-friedl force-pushed the dev/enable-legacy-http-transport branch from bf2dbdf to 85abc76 Compare January 13, 2026 20:38
@alex-friedl alex-friedl force-pushed the dev/enable-legacy-http-transport branch from 85abc76 to 894bee1 Compare January 13, 2026 20:42
@alex-friedl alex-friedl changed the title Add support for legacyHttpTransport flag Add support for legacyHttpTransport flag Jan 14, 2026
Based on research and feedback from issue #220:
- Remove httpsAgent support (Firebase only supports httpAgent in AppOptions)
- Pass httpAgent to credential factory for proper authentication proxy support
- Single httpAgent parameter handles both HTTP and HTTPS connections
- Update documentation to clarify httpAgent usage with HttpsProxyAgent for HTTPS proxies
- Update tests to reflect httpAgent-only configuration
- Maintain legacyHttpTransport support for HTTP/1.1 transport

All 88 tests passing (87 existing + 1 legacyHttpTransport test)

Simplify credential assignment using || operator

Replace if/else block with more concise || operator for getting or creating
credential with httpAgent support. Maintains same functionality while improving
readability.
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.

Missing proxy support through FCM

2 participants