daveycodez
daveycodez
Explore posts from servers
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
I'm working on full Fumadocs sites for both packages, hopefully ready soon
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
I'll have a lot more to share soon but yea I'm working a lot on better-auth-ui right now with new support for all the better-auth 1.2 features as well
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
You add this file to create all the Tanstack hooks with type inference from your DB schema so you can just do something like const { data } = useFindMany("books")
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
Token comes from useToken hook from better-auth-tanstack
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
I'm working on better-auth-ui right now that repo isn't exactly ready for the site itself, but to use neon-drizzle-tanstack library it's pretty simple you just wrap your app/layout in a NeonQueryProvider
<NeonQueryProvider
db={getDb("authenticated")}
fetchEndpoint={`${getURL()}/api/sql`} // optional endpoint for custom proxy
mutateInvalidate={true}
optimisticMutate={true}
token={token}
>{children}</NeonQueryProvider>
<NeonQueryProvider
db={getDb("authenticated")}
fetchEndpoint={`${getURL()}/api/sql`} // optional endpoint for custom proxy
mutateInvalidate={true}
optimisticMutate={true}
token={token}
>{children}</NeonQueryProvider>
34 replies
BABetter Auth
Created by Atharv on 2/26/2025 in #help
First time building with better auth why does this happen while deployment?
can you share the full log
4 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
https://newtech.dev I implemented the Books and Todos examples from Neon docs but with better-auth
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
ES256
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
Using JWT from better-auth jwt plugin
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
Neon RLS through client side react hooks
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
That's what I'm using them for
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
and don't have to pay Vercel for any bandwidth for data either, just middleware and WAF
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
This way I don't have any serverless invocations for any of my data requests
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
fully typesafe based on Drizzle schema
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
useFindMany just wraps Drizzle findMany into a React hook
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
But I have 0 API for data requests, it's all just drizzle from React directly
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
I'm running my tanstack hooks through my custom proxy middleware that simply uses vercel firewall for rate limiting
34 replies
BABetter Auth
Created by manu² on 2/22/2025 in #help
Neon Authorize + Better Auth JWT + Drizzle + Row Level Security
better-auth 1.2 is coming with a new JWT plugin for better ways to sign with 0 latency via api
34 replies