Jimmy
Jimmy
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
What's the best way to enforce a user to be signed-in for certain routes?
I've been using middleware to call get-session from the better-auth api endpoint, but it slows page load times significantly. Is there a better way?
2 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
I've enabled Google as a provider for social login. It works great in Chrome in dev and production. Safari even works great in dev. But in prod, when I click "Continue with Google" the page just seems to refresh. Is there something special about Safari in prod that makes it different than Chrome when it comes to social logins? Credentials work fine.
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
Hello 👋 -- The title basically says it. I'm using prisma as my database adapter. How do I correctly seed users for development purposes? Do I import the auth and use auth.api.createUser({...}) or should I use my prisma client to directly insert? I have email verification enabled and I obviously want to skip that for this purpose. What's the idiomatic approach for this? Thanks in advance!
17 replies