Using Hono.js on Cloudflare Workers Free Plan with Postgres, JWT, and OAuth
Can honojs work on cloudflare workers free plan with postgres db and hono's built-in JWT and auth with google, github (google and github from hono's list of oauth providers) and custom email auth?
4 Replies
depends on what you mean by "work", but i don't see why not
Just auth, that's it.
Why is mostly because of 10ms cpu time and previously JWT was not at all supported by CF Workers, seems more of a CF workers limitation that hono limitation
I think it should be fine. The 10ms CPU time is only for time actually spent on the worker, so all the async requests shouldn't count towards it when you hit the DB and oauth providers.
I would also assume the JWT works if your are taking it from the hono package because hono was pretty much designed to work on cloudflare.
Got it! Thank you... !