@kovojs/better-auth
v0.2.0
Published
Better Auth adapter for Kovo. It provides typed session integration, sign-in, sign-up, sign-out mutations, auth guards, role checks, and redirect protocol mounting for apps that use Better Auth.
Readme
@kovojs/better-auth
Better Auth adapter for Kovo. It provides typed session integration, sign-in, sign-up, sign-out mutations, auth guards, role checks, and redirect protocol mounting for apps that use Better Auth.
pnpm add @kovojs/better-auth better-authimport { betterAuthSession } from '@kovojs/better-auth';
export const appSessionProvider = betterAuthSession(auth, ({ user }) => ({
user: {
email: user.email,
id: user.id,
name: user.name,
},
}));Reference
- API:
/api/better-auth/ - Guide:
/guides/auth-better-auth/
