UNPKG

@signalapp/mock-server

Version:
7 lines (6 loc) 397 B
import type { ServerRequest, ServerResponse } from 'microrouter'; import { ParseAuthHeaderResult } from '../util'; import type { Server } from './base'; import type { Device } from '../data/device'; export declare function parsePassword(req: ServerRequest): ParseAuthHeaderResult; export declare function auth(server: Server, req: ServerRequest, res: ServerResponse): Promise<Device | undefined>;