Oracle
Explore posts from serversBABetter Auth
•Created by Rikki on 3/5/2025 in #help
cookie getting deleted automatically after refresh on signup with cloudfare workers
So after a bit of playing around I got this solved by setting up a proxy between my frontend and backend, the proxy was setup on NextJS backend and it looks something like this, it solves the cross domain sharing problem, and in the future if I setup under one domain its pretty easy to remove and work in place
38 replies
BABetter Auth
•Created by Oracle on 3/10/2025 in #help
Cross-Domain Authentication with Next.js: Choosing Between Bearer Tokens and JWT for better-auth
yup that resolved everything, thanks for putting me on the right track. I just went with normal sessions which is nice as well. Thanks again!
4 replies
BABetter Auth
•Created by Rikki on 3/5/2025 in #help
cookie getting deleted automatically after refresh on signup with cloudfare workers
yeah they have seperate domains
how can I setup to allow seperate domains I thought the whole point was CORS to allow this
38 replies
BABetter Auth
•Created by Rikki on 3/5/2025 in #help
cookie getting deleted automatically after refresh on signup with cloudfare workers
Front end I am using vercel and backend is encore cloud for the moment
38 replies
BABetter Auth
•Created by Rikki on 3/5/2025 in #help
cookie getting deleted automatically after refresh on signup with cloudfare workers
Is there documentation on this? Or the proper setup?
38 replies
BABetter Auth
•Created by Rikki on 3/5/2025 in #help
cookie getting deleted automatically after refresh on signup with cloudfare workers
im not sure if the same issue, but I have my frontend hosted on vercel and my backend is hosted elsewhere. when signing in and looking at the cookies in the developer console. I see the session auth cookie appear and then immediately dissapear, backend sees the request and no errors but frontend is removing it for some reason?
38 replies
BABetter Auth
•Created by sanser on 3/5/2025 in #help
/api/auth/subscription/upgrade 404 with stripe plugin
hey I had this problem, as well. I had to in the authClient set subscription to true, and do the same in the backend.
For reference
Frontend
Backend
Hope this helps!
6 replies