Ahmed
BABetter Auth
•Created by daveycodez on 3/11/2025 in #bug-reports
getSessionCookie is broken in Next.js middleware
@bekacru please have a look at this pr https://github.com/better-auth/better-auth/pull/1716 . alot is getting confused with this function.
133 replies
BABetter Auth
•Created by daveycodez on 3/11/2025 in #bug-reports
getSessionCookie is broken in Next.js middleware
133 replies
BABetter Auth
•Created by Ahmed on 3/6/2025 in #bug-reports
getSessionCookie() return null is some cases
22 replies
BABetter Auth
•Created by Ahmed on 3/6/2025 in #bug-reports
getSessionCookie() return null is some cases
@bekacru if you agree i could help with PR
22 replies
BABetter Auth
•Created by Ahmed on 3/6/2025 in #bug-reports
getSessionCookie() return null is some cases
sure we can’t as i mention above to be edge compatible. i think the best that can be done is to clarify in the docs and also adjust the logic to check for https:// to add the secure prefix, right now if someone is using
--experimental-https
in development the session cookie is prefixed with __secure-
but the function is only adding the prefix in production rustling in null return
Or maybe we can just add an config option useSecureCookies: true
and let the user control it. something like this
22 replies
BABetter Auth
•Created by Ahmed on 3/6/2025 in #bug-reports
getSessionCookie() return null is some cases
Temporary fix:
@joseph013318 @Ravi @shadow @keks
22 replies
BABetter Auth
•Created by Ahmed on 11/17/2024 in #bug-reports
authClient.organization.create() error, in latest beta
yup now working, silly me 😒
thank you @bekacru
9 replies
BABetter Auth
•Created by Ahmed on 11/17/2024 in #bug-reports
authClient.organization.create() error, in latest beta
if the user is signed in the email should be inherited from the current user session right ?!
9 replies
BABetter Auth
•Created by Ahmed on 11/17/2024 in #bug-reports
authClient.organization.create() error, in latest beta
hey, thanks for you reply
i'm trying to create new org with signed in user.
9 replies
BABetter Auth
•Created by Ahmed on 10/21/2024 in #bug-reports
authClient.signOut error when multiSession() enabled with prisma adaptor
thank you
3 replies