UNPKG

firebase-auth-cloudflare-workers

Version:

Zero-dependencies firebase auth library for Cloudflare Workers.

11 lines (10 loc) 282 B
export 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. */ export const useEmulator = (env) => { return !!emulatorHost(env); };