Samphire
BABetter Auth
•Created by Samphire on 3/17/2025 in #help
Cant delete API_Key
I am telling you man everything works but the delete
14 replies
BABetter Auth
•Created by Samphire on 3/17/2025 in #help
Cant delete API_Key
you mean this?
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "../db";
import * as schema from "../db/schema";
import { apiKey } from "better-auth/plugins";
export const auth = betterAuth({
plugins: [
// Use default options for apiKey plugin
apiKey(),
],
database: drizzleAdapter(db, {
provider: "pg",
schema: schema,
}),
trustedOrigins: [process.env.CORS_ORIGIN!],
emailAndPassword: {
enabled: true,
},
});
14 replies
BABetter Auth
•Created by Samphire on 3/17/2025 in #help
Cant delete API_Key
It also didnt work on server!
14 replies
BABetter Auth
•Created by Samphire on 3/17/2025 in #help
Cant delete API_Key
It also didnt work on server!
14 replies
BABetter Auth
•Created by Samphire on 3/17/2025 in #help
Cant delete API_Key
I am glade I am not crazy, I though I was doing something wrong.
14 replies
BABetter Auth
•Created by Samphire on 3/17/2025 in #help
Cant delete API_Key
anyone? :c I cant get it to work so it has to be a bug. I will just do it manually for now.
14 replies