j_slno
j_slno
BABetter Auth
Created by anw on 3/2/2025 in #help
getting clientlayout to work
7 replies
BABetter Auth
Created by anw on 3/2/2025 in #help
getting clientlayout to work
better-auth doenst provide a BetterAuthProvider
7 replies
BABetter Auth
Created by k5o5 on 2/26/2025 in #help
Trying to get up and running with an Express app, but running into an error when `npm run start`
lib should be inside compilerOptions also make sure to set declarations to false
18 replies
BABetter Auth
Created by k5o5 on 2/26/2025 in #help
Trying to get up and running with an Express app, but running into an error when `npm run start`
Have you tried to delete node_modules and your lock file and reinstall again?
18 replies
BABetter Auth
Created by Kaylee on 2/26/2025 in #help
Creating an org at user creation best practices
You really should use database hooks like already advised. Querying the database every time a session is created causes a lot of unnecessary overload. The user is created before the session so user.create.after should most definitely finish before session.create.before.
8 replies
BABetter Auth
Created by k5o5 on 2/26/2025 in #help
Trying to get up and running with an Express app, but running into an error when `npm run start`
18 replies
BABetter Auth
Created by k5o5 on 2/26/2025 in #help
Trying to get up and running with an Express app, but running into an error when `npm run start`
"Note that CommonJS (cjs) isn't supported. Use ECMAScript Modules (ESM) by setting "type": "module" in your package.json or configuring your tsconfig.json to use ES modules." You cant use commonjs.
18 replies
BABetter Auth
Created by k5o5 on 2/26/2025 in #help
Trying to get up and running with an Express app, but running into an error when `npm run start`
{
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist",
"declaration": false,
"strict": true,
"lib": ["es2015"] // this should be inside compilerOptions
},
"exclude": ["node_modules"]
}
{
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist",
"declaration": false,
"strict": true,
"lib": ["es2015"] // this should be inside compilerOptions
},
"exclude": ["node_modules"]
}
18 replies
BABetter Auth
Created by k5o5 on 2/26/2025 in #help
Trying to get up and running with an Express app, but running into an error when `npm run start`
can you try to exclude node_modules
18 replies
BABetter Auth
Created by k5o5 on 2/26/2025 in #help
Trying to get up and running with an Express app, but running into an error when `npm run start`
try to set declarations to false and strict to true in your tsconfig
18 replies
BABetter Auth
Created by CodingWithLuke on 2/26/2025 in #help
How to return custom session with modified DB fields
You can assign it manually though, or in your case you could write a function that converts the keys from camel to snake case.
5 replies
BABetter Auth
Created by CodingWithLuke on 2/26/2025 in #help
How to return custom session with modified DB fields
its just changing the column names in the database, not the variable names.
5 replies
BABetter Auth
Created by chris on 1/22/2025 in #help
how to have protected social login (whitelisted emails)
14 replies
BABetter Auth
Created by Augustas Paliulis on 2/16/2025 in #help
Blocking specific routes based on user session
you have to use fetch. middlewares aren't run directly in nodejs. https://www.better-auth.com/docs/integrations/next#middleware
10 replies