lympe
lympe
BABetter Auth
Created by lympe on 5/14/2025 in #help
MFA depending on user role
Hi! I was wondering — is it possible to enforce MFA for admins, while keeping it optional for normal users?
2 replies
BABetter Auth
Created by lympe on 5/4/2025 in #help
How handle RLS
Hello, I’m new to Better Auth and Drizzle, and I wanted to know if there is an equivalent to Supabase’s auth.id() function in Better Auth and/or Drizzle, or otherwise how to properly identify the logged-in user in order to apply the correct RLS. Thanks in advance.
2 replies
BABetter Auth
Created by lympe on 2/12/2025 in #help
Prisma adapter
Hello, I try to add better-auth to my project but I don't known how I can,extend my prisma schema with the schema needed by better-auth ?
1 replies
BABetter Auth
Created by lympe on 2/3/2025 in #help
Prisma adapter import path error
Hello everyone, I've started working with Better Auth, but I'm running into an issue with the Prisma adapter. I have the following code: import { betterAuth } from "better-auth"; import { prismaAdapter } from "better-auth/adapters/prisma"; import { PrismaClient } from "@prisma/client"; const prisma = new PrismaClient(); export const auth = betterAuth({ database: prismaAdapter(prisma, { provider: "mongodb", }), emailAndPassword: { enabled: true, }, }); However, when I run npm run dev, I get this error in my terminal: Error: Package subpath './*' is not defined by "exports" in /Users/lympe/Workspace/test/node_modules/better-auth/package.json My IDE indicates that the import path is correct. Does anyone have an idea why this is happening or how to fix it?
6 replies