@holeauth/2fa-drizzle
v0.0.1-alpha.0
Published
Drizzle adapter for @holeauth/plugin-2fa (TOTP + recovery codes).
Readme
@holeauth/2fa-drizzle
Drizzle adapter for @holeauth/plugin-2fa. Subpaths: /pg, /mysql, /sqlite.
import { createTwoFactorTables, createTwoFactorAdapter } from '@holeauth/2fa-drizzle/pg';
import { users } from '@/db/schema';
export const twofa = createTwoFactorTables({ usersTable: users });
const twoFactorAdapter = createTwoFactorAdapter({ db, tables: twofa.tables });