ItsTeegj
Explore posts from serversBABetter Auth
•Created by ItsTeegj on 3/23/2025 in #help
Internal Server Error when deployed to AWS

4 replies
BABetter Auth
•Created by ItsTeegj on 3/23/2025 in #help
Internal Server Error when deployed to AWS
I have the baseUrl set for both auth and authclient to my cloudfront url.
4 replies
BABetter Auth
•Created by varundeva on 2/17/2025 in #help
Which is proper way for api authentication for nextJs api? taking more time to give response
Not sure if this will help you, but I needed to do a similar thing which was update the session for some additional fields I had on the user. What I ended up doing was calling the updateUser method on the authclient just so that it updated the session with updated user field, while also making a separate call to my backend. I know it’s not the cleanest, but that worked for me. So in your case, you would call the updateUser method and set the isOnboarded to true. I also used router.refresh() from Nextjs too after that
13 replies
BABetter Auth
•Created by mihaaai on 10/16/2024 in #bug-reports
Can't use Cloudflare D1 database with Hono backend on Cloudflare Workers
Im glad you were able to get the routes working. As far as the CLI, im not sure how to get those working with this setup. Might be worth asking in the general chat for help since its essential for your workflow.
15 replies
BABetter Auth
•Created by mihaaai on 10/16/2024 in #bug-reports
Can't use Cloudflare D1 database with Hono backend on Cloudflare Workers
No problem. You have a great day as well!
15 replies
BABetter Auth
•Created by mihaaai on 10/16/2024 in #bug-reports
Can't use Cloudflare D1 database with Hono backend on Cloudflare Workers
Let me know if you have any other questions or issues and I will see if I can help!
15 replies
BABetter Auth
•Created by mihaaai on 10/16/2024 in #bug-reports
Can't use Cloudflare D1 database with Hono backend on Cloudflare Workers
Im not sure about the cli tool for migrate and generate since I was never able to get them working because I am using Drizzle. I just manually implemented the schemas from the documentation. As far as migrating, I use drizzle to handle the migration since according to the docs, better-auth migrate only works with kysely adapter anyway. I am able to use the auth client in my React app with no issues with this current setup.
15 replies
BABetter Auth
•Created by mihaaai on 10/16/2024 in #bug-reports
Can't use Cloudflare D1 database with Hono backend on Cloudflare Workers
Hopefully I am not too late in showing you this example.
15 replies
BABetter Auth
•Created by mihaaai on 10/16/2024 in #bug-reports
Can't use Cloudflare D1 database with Hono backend on Cloudflare Workers

15 replies
Can I have a route that can bypass multi-tenancy?
I used a workaround which consisted of creating a user observer and creating a tenant once a user is created. I then set the billingpage tenant to the first tenant of that user. Probably not the best solution, but it will work for now
6 replies