@signalapp/mock-server
Version:
Mock Signal Server for writing tests
7 lines (6 loc) • 397 B
TypeScript
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>;