12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import { type TypeOf, string, boolean } from 'zod'
|
|
|
|
import { AbstractSchema } from './abstract'
|
|
|
|
export const TotpSchema = AbstractSchema.extend({
|
|
secret: string().default(''),
|
|
enabled: boolean().default(false),
|
|
url: string().url().default(''),
|
|
})
|
|
|
|
export type Totp = TypeOf<typeof TotpSchema>
|