### Which middleware has the bug? @hono/firebase ### What version of the middleware? ^1.4.2 ### What version of Hono are you using? ^4.12.9 ### What runtime/platform is your app running on? (with version if possible) Cloudflare worker ### What steps can reproduce the bug? 1. BACKEND SETUP ```tsx import { Hono } from 'hono' import { cors } from 'hono/cors' import { gallaryController } from './modules/gallery/gallery.controller' import { verifyFirebaseAuth, VerifyFirebaseAuthEnv } from '@hono/firebase-auth' type AppEnv = { Bindings: VerifyFirebaseAuthEnv } const app = new Hono<AppEnv>().basePath('/api') app.use( '*', cors({ origin: ['http://localhost:1420', 'tauri://localhost'], allowMethods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'], allowHeaders: ['Content-Type', 'Authorization'], credentials: true, }), ) app.use( '*', verifyFirebaseAuth({ projectId: 'dev-something', }), ) app.route('/gallery', gallaryController) export default app ``` 2. FRONTEND SETUP ```tsx import { auth } from '@/firebase' import axios from 'axios' export const backendInstance = axios.create({ baseURL: import.meta.env.VITE_BACKEND_URL || 'http://localhost:8080/api', }) backendInstance.interceptors.request.use(async (config) => { if (!auth.currentUser) { return config } const idToken = await auth.currentUser.getIdToken() config.headers['Authorization'] = `Bearer ${idToken}` return config }) function signUploadUrl() { return backendInstance.get('/gallery') } export const galleryService = { signUploadUrl, } ``` ### What is the expected behavior? Expect to got 200 OK with json response ### What do you see instead? `501 Not Implemented` <img width="1271" height="779" alt="Image" src="https://github.com/user-attachments/assets/065c7a2e-a9bd-473e-8e58-c69299a7c7bb" /> ### Additional information I use `wrangler dev --local` for runing backend
Activity
BarryThePenguin commentedon Mar 29, 2026
My guess would be that wrangler doesn't implement some API that firebase expects. From my understanding, firebase won't run on Cloudflare Workers?
blackmouse572 commentedon Mar 29, 2026
This lib support Worker officially ? Is it not ? I do not use firebase admin sdk. Only this one
BarryThePenguin commentedon Mar 29, 2026
Ah.. I didn't realise that it uses https://github.com/Code-Hex/firebase-auth-cloudflare-workers
It may be worth opening an issue there as
@hono/firebase-authis just a light wrapper aroundfirebase-auth-cloudflare-workersyusukebe commentedon Mar 30, 2026
cc: @Code-Hex