samuelwhunter
samuelwhunter
BABetter Auth
Created by Rhys on 3/8/2025 in #help
Organization additional fields
6 replies
BABetter Auth
Created by Rhys on 3/8/2025 in #help
Organization additional fields
Or a workaround is extending the session!
6 replies
BABetter Auth
Created by Rhys on 3/8/2025 in #help
Organization additional fields
I've put a feature request in if you wanna give it a thumbs up! https://discord.com/channels/1288403910284935179/1351478209773830215
6 replies
BABetter Auth
Created by hunita on 3/19/2025 in #help
create organization in databaseHooks.user.create.after
That sounds doable! Maybe try taking the path from the context as it'll be different from users that accept an invite. As for the hook, just create a function in a lib file?
after: async (user, ctx) => {
if (ctx?.path.startsWith("/verify-email")) {
// whatever path this actually is
await createNewOrg(user)
// create the account and set as active in here?
}
}
after: async (user, ctx) => {
if (ctx?.path.startsWith("/verify-email")) {
// whatever path this actually is
await createNewOrg(user)
// create the account and set as active in here?
}
}
Hoping I haven't missed the mark here haha
7 replies
BABetter Auth
Created by msy on 2/21/2025 in #help
Trying to use Drizzle and SingleStore in Next.js
Hi, did you manage to fix this? I'm getting the same error
3 replies