© 2026 Hedgehog Software, LLC
export const auth = betterAuth({ hooks: { after: createAuthMiddleware(async (ctx) => { if(ctx.path.startsWith("/sign-up")){ const newSession = ctx.context.newSession; if(newSession){ sendMessage({ type: "user-register", name: newSession.user.name, }) } } }), }, });
/sign-up
/callback/:id
databaseHooks -> user -> create -> after