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?
Would it be better/acceptable to simply add a check when the dashboard layout renders?
2 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
No description
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
callbackURL doesn't work for me.
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
yeah, that fixes it. What's the best way to redirect the user after successful social login? I don't want them to go back to the homepage. I'd like for the path to be /dashboard instead.
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
maybe that'll reveal something
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
yeah, did that. No luck with either. I'm going to deploy an update that removes the router.push and router.reset on success and instead just log something
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
To add to the confusion: it works fine on my iphone / safari / prod.
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
that's the code that executes when the button is pressed
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
No description
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
No description
17 replies
BABetter Auth
Created by Jimmy on 2/22/2025 in #help
Social login not working with Safari in production
it's really hard to tell. here's the network log from Safari.
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
I think I'm going to punt and go back to using prisma to directly insert. Do you know how to correctly hash the password?
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
Is it because it's not loading my .env file which has my BETTER_AUTH_SECRET?
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
No description
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
Coming back to the original question. Now I'm getting an "UNAUTHORIZED" error from better-auth
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
I have other files imported in auth.ts that use that syntax too. I was able to solve this using tsconfig-paths. https://typestrong.org/ts-node/docs/paths/
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
My seed command looks like this in my package.json:
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
When I import my better-auth file, I get an error from typescript complaining that "@/lib/auth.ts" isn't found. Do you know how I'd get around this if I go the better-auth route?
17 replies
BABetter Auth
Created by Jimmy on 2/20/2025 in #help
How do I seed users for development env?
Is the accounts table left alone and only for social accounts?
17 replies