You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
This library relies on fast-text-encoding@1.0.0, which dumps TextEncoder and TextDecoder into the global namespace. Unfortunately, the polyfill implementations provided by fast-text-encoding are incomplete (they don't support UTF-8, for example) and this causes other libraries that rely on this functionality to break. For example, libraries built with Emscripten check for TextDecoder and will fail if google-auth-library is loaded.
Easy fix is to defer requiring browser/crypto and node/crypto until you know which environment you're in. Since TextEncoder and TextDecoder aren't needed for Node, that seems reasonable.