identity and trustpackages/iam/auth
auth package
Better Auth on Postgres — organization membership, device-flow login, MFA-enforced, session HMAC-signed. One identity layer, no vendor in the loop.
- Stability
- Stable
- Scope
- Tenant-scoped
- Boundary
- packages/iam/auth
@nebutra/auth
Sign in to Nebutra
One auth provider, every sign-in method it needs — Better Auth, no vendor in the loop.
or sign in with email
Better Auth · SSO ready · MFA enforced
Usageauth.ts
typescriptauth.ts
1import { createAuth } from "@nebutra/auth";
2
3export const auth = await createAuth({
4 provider: "better-auth",
5 callbacks: {
6 onSignIn: async ({ user, ctx }) => {
7 await ctx.audit.log("user.sign_in", { userId: user.id });
8 },
9 },
10});