jstack icon indicating copy to clipboard operation
jstack copied to clipboard

feat: better-auth

Open harshsbhat opened this issue 8 months ago • 6 comments

harshsbhat avatar Apr 07 '25 10:04 harshsbhat

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.

SamHoque avatar Apr 10 '25 15:04 SamHoque

Any update on this PR? Better-auth or next-auth integration would be a very good implement!

yansircc avatar May 03 '25 06:05 yansircc

@yansircc Yes, I can work on this today or tomorrow ( since it's a weekend )

harshsbhat avatar May 03 '25 06:05 harshsbhat

@harshsbhat You have no idea how much time I spent on auth, and in the end, I had to use Clerk's JWT solution.

yansircc avatar May 03 '25 16:05 yansircc

@harshsbhat still you working on this? If not, may i handle it ?

ziyadev avatar Sep 24 '25 18:09 ziyadev

@ziyadev go for it

harshsbhat avatar Sep 25 '25 04:09 harshsbhat