whistlecube
whistlecube
BABetter Auth
Created by Aruthoth on 12/9/2024 in #help
How to set up the database with drizzleAdapter + D1 using Hono on Cloudflare Workers
Ok I’m still having trouble, I think the auth instance isn’t persistent across requests. I can sign-in just fine, and accessing the session works, but on the next request using the middleware, I get a null session. How are you protecting your other routes using the middleware?
32 replies
BABetter Auth
Created by Aruthoth on 12/9/2024 in #help
How to set up the database with drizzleAdapter + D1 using Hono on Cloudflare Workers
nvm i got it
32 replies
BABetter Auth
Created by Aruthoth on 12/9/2024 in #help
How to set up the database with drizzleAdapter + D1 using Hono on Cloudflare Workers
Do you create this middleware in a separate file, and then import it to your Hono app? How do you use it within Hono?
32 replies