Aditya Mathur
Is there a way to get bindings outside the `c` Context of an inbound Request in Cloudflare Workers?
Yeah, this is perfect - https://www.better-auth.com/docs/integrations/hono#mount-the-handler, just init the auth inside the function. honestly regarding the function if you are not running this on node then you are still init the auth on each request. If you are on node then you can just store the auth instance as a global variables once init.
10 replies
Is there a way to get bindings outside the `c` Context of an inbound Request in Cloudflare Workers?
But you will setting the value inside a middleware, so you will have access to the bindings. Rough Example - . Dont forget to add
auth
in hono variables10 replies
Is there a way to get bindings outside the `c` Context of an inbound Request in Cloudflare Workers?
Why don't you store the auth instance in the context by
.set()
using a middleware? That why you will also get the context
object as well as a single instance will be used across your request10 replies
hono type definition not working (using hono first time)
Answered here - https://discord.com/channels/1011308539819597844/1012477709588385792/1294332678702764227
2 replies
JSX not working at all with just "bun add hono"
Hey @Shy based upon this https://discord.com/channels/1011308539819597844/1012485912409690122/1293495908193013845, it seems this code is working. My guess is either their is some middleware which is effecting this or the bun runtime.
14 replies