How to setup neon auth with better-auth
Hi everyone,
could you please assist me in setting up Neon authentication with BetterAuth using the JWKS API in Next.js?

Solution:Jump to solution
Better Auth Next.js Neon RLS Starter
Better Auth Next.js Starter with Neon RLS, Drizzle, shadcn/ui and Tanstack Query
4 Replies
Hey I have a small demo of this
Solution
Better Auth Next.js Neon RLS Starter
Better Auth Next.js Starter with Neon RLS, Drizzle, shadcn/ui and Tanstack Query
GitHub link in the corner
Add this plugins: [jwt({ jwks: { keyPairConfig: { alg: "RS256" } } })] in Better-auth
Add “https://example.com/api/auth/jwks” to Neon Auth, replies “ example.com” to your own domain
Just like that, it is done