Dev
Explore posts from serversBABetter Auth
•Created by Dev on 3/1/2025 in #help
Type Error: Type instantiation is excessively deep and possibly infinite
I recently upgraded to the latest version of better-auth and these errors started popping up randomly, before upgrading i wasn't getting such errors
I'm using nextjs + hono, earlier i was using nextjs handler and i started getting these errors so i decided to try with the hono handler but it was of no use
similarly with the following code:
im using session in all the APIs but this error only pops up on any one of them, if i reload the vscode window, this error will appear on some other api
--
"better-auth": "^1.1.21",
"hono": "^4.7.2",
2 replies
BABetter Auth
•Created by Dev on 2/17/2025 in #help
React Router v7 Integration
I want to add auth in react router v7 app, the better-auth docs only mention the integration for Remix, so i tried using that but it didnt work
im new to react router / remix and dont know how to make it work
the below method mentioned in remix integration docs gives 405 error on form submission
// POST http://localhost:5173/api/auth/sign-up/email 405 (Method Not Allowed)
12 replies
CDCloudflare Developers
•Created by Dev on 2/9/2025 in #pages-help
Next.js + Cloudflare pages functions
I tried it myself but was a nightmare to work with, is there any guide or github repo i can follow to make it work?
6 replies
DTDrizzle Team
•Created by Dev on 2/9/2025 in #help
Cloudflare d1 on cloudflare pages functions
In the drizzle docs, the following code is mentioned to work with cloudflare workers but how do I make it work for cloudflare pages functions
I also need to export a singleton db instance from it to pass it to my better-auth instance, how do i make it work?
1 replies
CDCloudflare Developers
•Created by Dev on 1/25/2025 in #pages-help
Help: Binding undefined during build process
I'm creating a rag app entirely with cloudflare and next-on-pages and hono as api server
however, when i try to access the binding, it gives this error.
heres the code i'm using
this block always fails
my wrangler-toml
17 replies
BABetter Auth
•Created by Dev on 1/17/2025 in #help
Is Better Auth edge compatible?
I'm trying to deploy my nextjs-hono-backend application on cloudflare pages.
It builds successfully but on preview, it returns the following errors in the terminal
I dont know if neon is making these
XMLHttpRequest
or better-auth but since neon is edge compatible, it might be better-auth7 replies
BABetter Auth
•Created by Dev on 12/19/2024 in #bug-reports
Error in signing up using cloudflare d1 database and drizzle orm on nextjs15
I've been trying to make the signup logic work, ive watch so 2 tutorials relating to the same techstack as mine and wrote same code as them but mine doesn't work at all gave same errors on all iterations.
this error occurs when i submit the sign-up form, i have nothing in the code defined as "fullSchema" :
and this error appears in the browser console:
versions:
"better-auth": "^1.0.22"
"next": "15.1.0"
"drizzle-orm": "^0.38.2"
"wrangler": "^3.98.0"
any help is appreciated!
10 replies
KKinde
•Created by Dev on 7/15/2024 in #💻┃support
Session cookie does not persist after reload in React SDK
main.js:
i have setup admin subdomain in my site, thats why the redirectUri and logoutUri is different from what's defined in the react setup docs
So, when i try to login using this setting, it logs in for a moment but when i reload, it logs me out immediately
i had a look in the applications tab in the browser console, the cookies had some
enduser_session_id
field in it, and when i reload, this field vanishes
I tried using isDangerouslyUseLocalStorage={true}
in the above setting, it kept me logged in until i manually log out, the local storage had kinde_refresh_token
this time
and if i log out, the kinde_refresh_token
& enduser_session_id
vanishes from local storage and cookies resp.
I cannot keep using isDangerouslyUseLocalStorage={true}
as it is not secure, and i'm wondering why the kinde_refresh_token
not getting saved in the cookie instead of local storage?
is this a bug? if not is there a workaround to make it work2 replies