mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 15:31:19 +00:00
11 lines
369 B
TypeScript
11 lines
369 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TIdentityTokenAuthDALFactory = ReturnType<typeof identityTokenAuthDALFactory>;
|
|
|
|
export const identityTokenAuthDALFactory = (db: TDbClient) => {
|
|
const tokenAuthOrm = ormify(db, TableName.IdentityTokenAuth);
|
|
return tokenAuthOrm;
|
|
};
|