APPLE
APPLE
BABetter Auth
Created by APPLE on 2/28/2025 in #help
base path not resolving correctly
My server is running on port 8080 and client on 5173, I have created server auth instance by providing it basePath as "/auth" and created a route "/auth/*". For authClient instance i have provide full baseUrl as http://localhost:8080/auth. When i signin with google it sets the cookie but redirects to localhost:8080/auth. what is wrong here?
5 replies
BABetter Auth
Created by APPLE on 1/26/2025 in #help
Deployed social signin fails with prisma adapter
2025-01-26T17:51:36.581Z ERROR [Better Auth]: PrismaClientKnownRequestError Error [PrismaClientKnownRequestError]:
Invalid `prisma.verification.create()` invocation:


Error validating datasource `db`: the URL must start with the protocol `prisma://`
at async Object.create (.next/server/chunks/545.js:1:17636)
at async createWithHooks (.next/server/chunks/545.js:2:48201)
at async Object.createVerificationValue (.next/server/chunks/545.js:2:54572)
at async s (.next/server/chunks/545.js:2:86212)
at async (.next/server/chunks/545.js:4:16189) {
code: 'P6001',
clientVersion: '6.2.1',
meta: [Object]
}
2025-01-26T17:51:36.581Z ERROR [Better Auth]: PrismaClientKnownRequestError Error [PrismaClientKnownRequestError]:
Invalid `prisma.verification.create()` invocation:


Error validating datasource `db`: the URL must start with the protocol `prisma://`
at async Object.create (.next/server/chunks/545.js:1:17636)
at async createWithHooks (.next/server/chunks/545.js:2:48201)
at async Object.createVerificationValue (.next/server/chunks/545.js:2:54572)
at async s (.next/server/chunks/545.js:2:86212)
at async (.next/server/chunks/545.js:4:16189) {
code: 'P6001',
clientVersion: '6.2.1',
meta: [Object]
}
3 replies