Kenny
Kenny
Explore posts from servers
BABetter Auth
Created by Kenny on 4/27/2025 in #help
v1.2.6 and v.1.2.7 throws errors when logging in
Same error unfortunately: D1_TYPE_ERROR: Type 'object' not supported for value 'Tue Apr 29 2025 22:26:24 GMT+0800 (Malaysia Time)'
6 replies
BABetter Auth
Created by Kenny on 4/27/2025 in #help
v1.2.6 and v.1.2.7 throws errors when logging in
@Ping
6 replies
BABetter Auth
Created by KZ on 4/4/2025 in #bug-reports
webcrypto issue w/ vite6(vs. 5) rr v7 ssr while in cf-wrangler [minflare]
I would try to add webcrypto to your vite config in ssr.optimizeDeps:
...
optimizeDeps: {
include: [
"react",
"react/jsx-runtime",
"react/jsx-dev-runtime",
"react-dom",
"react-dom/server",
"react-router",
// Add after other inclusions
"webcrypto"
],
},
...
optimizeDeps: {
include: [
"react",
"react/jsx-runtime",
"react/jsx-dev-runtime",
"react-dom",
"react-dom/server",
"react-router",
// Add after other inclusions
"webcrypto"
],
},
4 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
hm, I have never received that. What operation causes it?
25 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
of course!
25 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
cleared cache and still works
25 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
imma clear all cache to be sure
25 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
works for me
25 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
yep
25 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
appreciate it!
25 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
bump
25 replies
BABetter Auth
Created by Kenny on 4/13/2025 in #help
New Release Causes: `Field user_id not found in model member`
import { betterAuth } from "better-auth";
import { organization } from "better-auth/plugins";
import { D1Dialect } from "kysely-d1";

export function serverAuth(db: FirestormDatabase, env: Env) {
const auth = betterAuth({
database: new D1Dialect({ database: env.FIRESTORM_DB }),
user: {
modelName: "firestorm_users",
fields: { /* ... basic user fields ... */ },
},
session: {
modelName: "firestorm_sessions",
fields: {
userId: "user_id",
activeOrganizationId: "active_organization_id",
// ... other session fields
},
},
plugins: [
organization({
schema: {
organization: {
modelName: "firestorm_organizations",
fields: { /* ... */ },
},
member: { // <--- Relevant to error
modelName: "firestorm_members",
fields: {
userId: "user_id", // Error source?
organizationId: "organization_id",
createdAt: "created_at",
},
},
// Other schemas omitted
},
// Other org plugin config omitted
}),
// Other plugins omitted
],
// Other config omitted
});
return auth;
}
import { betterAuth } from "better-auth";
import { organization } from "better-auth/plugins";
import { D1Dialect } from "kysely-d1";

export function serverAuth(db: FirestormDatabase, env: Env) {
const auth = betterAuth({
database: new D1Dialect({ database: env.FIRESTORM_DB }),
user: {
modelName: "firestorm_users",
fields: { /* ... basic user fields ... */ },
},
session: {
modelName: "firestorm_sessions",
fields: {
userId: "user_id",
activeOrganizationId: "active_organization_id",
// ... other session fields
},
},
plugins: [
organization({
schema: {
organization: {
modelName: "firestorm_organizations",
fields: { /* ... */ },
},
member: { // <--- Relevant to error
modelName: "firestorm_members",
fields: {
userId: "user_id", // Error source?
organizationId: "organization_id",
createdAt: "created_at",
},
},
// Other schemas omitted
},
// Other org plugin config omitted
}),
// Other plugins omitted
],
// Other config omitted
});
return auth;
}
25 replies
BABetter Auth
Created by Rhys on 3/8/2025 in #help
Organization additional fields
it seems to be correct although I am looking for a workaround
6 replies
BABetter Auth
Created by Kenny on 3/20/2025 in #help
Custom Fields in Organization Table Not Saving Values
^bump
6 replies
BABetter Auth
Created by Kenny on 3/20/2025 in #help
Custom Fields in Organization Table Not Saving Values
I found this: https://discord.com/channels/1288403910284935179/1349447761182851214 Are there any workarounds that people know about or should I open up a github issue request on this?
6 replies
BABetter Auth
Created by Kenny on 3/18/2025 in #help
better-auth organizations
Awesome, I’ll try that out. Thanks!
10 replies
BABetter Auth
Created by Kenny on 3/18/2025 in #help
better-auth organizations
Yes as in there’s a workaround or there isn’t? For this particular case I cannot trigger this from the client-side.
10 replies
BABetter Auth
Created by Kenny on 3/18/2025 in #help
better-auth organizations
I haven’t yet but is there something better kind of workaround/hack I can use for it or do I need to wait for gh issue to be resolved?
10 replies
BABetter Auth
Created by Kenny on 3/18/2025 in #help
better-auth organizations
any chance anyone knows how to resolve this?
10 replies
BABetter Auth
Created by Kenny on 3/18/2025 in #help
better-auth organizations
Any help would be greatly appreciated!
10 replies