15 lines
289 B
TypeScript
15 lines
289 B
TypeScript
import { FSDB_COLLECTION } from 'jsr:@andyburke/fsdb';
|
|
|
|
export type TOTP_ENTRY = {
|
|
user_id: string;
|
|
secret: string;
|
|
timestamps: {
|
|
created: string;
|
|
updated: string;
|
|
};
|
|
};
|
|
|
|
export const TOTP_ENTRIES = new FSDB_COLLECTION<TOTP_ENTRY>({
|
|
name: 'totp_entries',
|
|
id_field: 'user_id'
|
|
});
|