Ravi
BABetter Auth
•Created by Ravi on 5/11/2025 in #bug-reports
Incorrect Magic Link Base URL in Vercel
In the source code for magic-link/index.ts:
When constructing the magic link URL, it's using ctx.context.baseURL which appears to be using the deployment URL instead of respecting the domain from the incoming request. I don't know why it's doing this
6 replies
DTDrizzle Team
•Created by Joey9 on 4/12/2025 in #help
Drizzle & Supabase
after I removed that, Better Auth has been working for me
32 replies
DTDrizzle Team
•Created by Joey9 on 4/12/2025 in #help
Drizzle & Supabase
I was having a timestamp problem where I pulled my schema from supabase and it broke because the timestamp values were configured as mode:string
32 replies
BABetter Auth
•Created by Ahmed on 3/6/2025 in #bug-reports
getSessionCookie() return null is some cases
Sorry, I'm not aware of this issue. What is it?
22 replies
BABetter Auth
•Created by Ravi on 2/21/2025 in #help
signInEmail isn't properly setting cookies in production? (NextJS 15/Vercel)
@vz @ryanisaboi1 I decided to instead use the auth client. The reason why this was happening is because of a domain mismatch. Since we are using a server action the auth.api uses the domain associated with the specific commit, instead of the branch domain or a custom domain pointing to the head of a branch.
After a bunch of headache trying to make them match I used authclient which matches the base url properly.
7 replies
BABetter Auth
•Created by Ravi on 2/21/2025 in #help
signInEmail isn't properly setting cookies in production? (NextJS 15/Vercel)
I believe so.
7 replies
BABetter Auth
•Created by Ahmed on 3/6/2025 in #bug-reports
getSessionCookie() return null is some cases
Hi. I migrated away from both getsession() and using auth.api for middleware. Instead I am doing the following:
const getSessionUrl = request.nextUrl.origin + "/api/auth/get-session";
const response = await fetch(getSessionUrl, {
headers: {
cookie: request.headers.get("cookie") || "",
disableCookieCache: "true",
},
credentials: "include",
});
22 replies
BABetter Auth
•Created by Ravi on 2/21/2025 in #help
signInEmail isn't properly setting cookies in production? (NextJS 15/Vercel)
Also, I know I am unauthorized by going on an api route that is protected
7 replies
BABetter Auth
•Created by Ravi on 2/14/2025 in #help
The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received Date
or should i get rid of string mode altogether
9 replies
BABetter Auth
•Created by Ravi on 2/14/2025 in #help
The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received Date

9 replies
BABetter Auth
•Created by Ravi on 2/14/2025 in #help
The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received Date
ok lemme try
9 replies
BABetter Auth
•Created by Ravi on 2/14/2025 in #help
The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received Date
in my schema
9 replies
BABetter Auth
•Created by Ravi on 2/14/2025 in #help
The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received Date
All timestamps are string mode btw
9 replies
BABetter Auth
•Created by Ravi on 2/14/2025 in #help
The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received Date
const newUser = await auth.api.signUpEmail({
body: {
email: individual.email,
password: password,
name: individual.firstName,
}
});
9 replies
BABetter Auth
•Created by Ravi on 2/14/2025 in #help
The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received Date
Anyone know why or how this happens?
9 replies