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?
No description
Solution:
Better Auth Next.js Neon RLS Starter
Better Auth Next.js Starter with Neon RLS, Drizzle, shadcn/ui and Tanstack Query
Jump to solution
4 Replies
daveycodez
daveycodez3d ago
Hey I have a small demo of this
Solution
daveycodez
daveycodez3d ago
Better Auth Next.js Neon RLS Starter
Better Auth Next.js Starter with Neon RLS, Drizzle, shadcn/ui and Tanstack Query
daveycodez
daveycodez3d ago
GitHub link in the corner
Ali Alnaghmoush
Ali AlnaghmoushOP3d ago
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

Did you find this page helpful?