More complex check for authTokenSyncUrl by jamesdaniels · Pull Request #8076 · firebase/firebase-js-sdk (original) (raw)

Q, should we guard against isSecureContext not being available? Can I use isSecureContext?

I think we should. Sure, this is the browser bundle and it should never be run in Node, and the chart seems to cover all the browsers we support but I'm never sure about extensions, iframes, jsdom, and bad SSR configs where they end up pulling in the browser bundle in Node.