feat: better-auth
Hey, Thank you for PR. as someone who has implemented better auth using JStack.
const sql = neon(process.env.DATABASE_URL!);
This will not work for cloudflare workers, due to process.env being undefined.
You need to create the auth as a hono middleware and use the db from the middleware, since it binds the env variables.
Any update on this PR? Better-auth or next-auth integration would be a very good implement!
@yansircc Yes, I can work on this today or tomorrow ( since it's a weekend )
@harshsbhat You have no idea how much time I spent on auth, and in the end, I had to use Clerk's JWT solution.
@harshsbhat still you working on this? If not, may i handle it ?
@ziyadev go for it