UNPKG

firebase-auth-cloudflare-workers

Version:

Zero-dependencies firebase auth library for Cloudflare Workers.

16 lines (15 loc) 447 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useEmulator = void 0; exports.emulatorHost = emulatorHost; function emulatorHost(env) { return env?.FIREBASE_AUTH_EMULATOR_HOST; } /** * When true the SDK should communicate with the Auth Emulator for all API * calls and also produce unsigned tokens. */ const useEmulator = (env) => { return !!emulatorHost(env); }; exports.useEmulator = useEmulator;