Ali Alnaghmoush
Explore posts from serversBABetter Auth
•Created by Ali Alnaghmoush on 5/6/2025 in #help
How to setup neon auth with better-auth
Add this plugins: [jwt({ jwks: { keyPairConfig: { alg: "RS256" } } })] in Better-auth
Add “https://example.com/api/auth/jwks” to Neon Auth, replies “ example.com” to your own domain
Just like that, it is done
6 replies
BABetter Auth
•Created by Ali Alnaghmoush on 11/12/2024 in #bug-reports
DeprecationWarning: The `punycode` module is deprecated
@admin @bekacru
5 replies
BABetter Auth
•Created by Ali Alnaghmoush on 11/12/2024 in #bug-reports
DeprecationWarning: The `punycode` module is deprecated
Are you working on solving this problem?
5 replies
BABetter Auth
•Created by Ali Alnaghmoush on 11/12/2024 in #bug-reports
DeprecationWarning: The `punycode` module is deprecated
Boss 🥲
https://nodejs.org/api/punycode.html
In this case the issue is that, Node itself is removing this module from its API. Any library that relied on it, that you, transitively use, is triggering this warning.
5 replies
BABetter Auth
•Created by Ali Alnaghmoush on 11/12/2024 in #bug-reports
basePath does not work in Next.js
It's working @bekacru thx!
This how i'm setup:
-- auth.ts
export const auth = betterAuth({
basePath: process.env.BETTER_AUTH_BASE_PATH,
database: drizzleAdapter(db, { provider: "pg" }),
emailAndPassword: { enabled: true, autoSignIn: false },
});
-- auth-client.ts
export const authClient = createAuthClient({
baseURL: process.env.BETTER_AUTH_URL_WITH_BASE_PATH,
})
-- .env.local
BETTER_AUTH_URL=http://localhost:3000
BETTER_AUTH_BASE_PATH=/api/v1/auth
BETTER_AUTH_URL_WITH_BASE_PATH=${BETTER_AUTH_URL}/api/v1/auth
8 replies
BABetter Auth
•Created by Ali Alnaghmoush on 11/12/2024 in #bug-reports
basePath does not work in Next.js
I will try it
8 replies
BABetter Auth
•Created by Ali Alnaghmoush on 11/12/2024 in #bug-reports
basePath does not work in Next.js
I use better-auth v0.8.2
8 replies
BABetter Auth
•Created by Ali Alnaghmoush on 11/12/2024 in #bug-reports
basePath does not work in Next.js
I looked into createAuthClient and search "basePath" but I did not find it
8 replies
BABetter Auth
•Created by Ali Alnaghmoush on 11/12/2024 in #bug-reports
basePath does not work in Next.js
I added it, but it does not work also
export const authClient = createAuthClient({
baseURL: process.env.BETTER_AUTH_URL,
basePath: "/api/v1/auth",
})
8 replies
BABetter Auth
•Created by Ali Alnaghmoush on 10/22/2024 in #bug-reports
better-auth take big size when imported
A lighter package size is good for performance app and request size
4 replies
BABetter Auth
•Created by Ali Alnaghmoush on 10/22/2024 in #bug-reports
better-auth take big size when imported
@bekacru
4 replies