UNPKG

@qelos/auth

Version:

Express Passport authentication service

19 lines (18 loc) 790 B
import { Response } from "express"; /** * Validate the sign up form * * @param {object} payload - the HTTP body message * @returns {object} The result of validation. Object contains a boolean validation result, * errors tips, and a global message for the whole form. */ export declare function validateSignUpForm(payload: any): any; /** * Validate the login form * * @param {object} payload - the HTTP body message * @returns {object} The result of validation. Object contains a boolean validation result, * errors tips, and a global message for the whole form. */ export declare function validateSignInForm(payload: any): any; export declare function tokenPayload(host: string, res: Response, data: any): Response<any, Record<string, any>>;