Ravi
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