UNPKG

@accounts/rest-express

Version:

Server side REST express middleware for accounts

6 lines (5 loc) 611 B
import type * as express from 'express'; import { type AccountsServer } from '@accounts/server'; export declare const twoFactorSecret: (accountsServer: AccountsServer) => (req: express.Request, res: express.Response) => Promise<void>; export declare const twoFactorSet: (accountsServer: AccountsServer) => (import("express-validator").ValidationChain | ((req: express.Request, res: express.Response) => Promise<void>))[]; export declare const twoFactorUnset: (accountsServer: AccountsServer) => (import("express-validator").ValidationChain | ((req: express.Request, res: express.Response) => Promise<void>))[];