UNPKG

@zkp2p/reclaim-witness-sdk

Version:

<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>

14 lines (13 loc) 612 B
/** * Mock https server to test claim creation. * It implements a GET /me endpoint that returns the email address * of the user. A bearer token is expected in the Authorization header. * * The bearer token is expected to be the email address without the domain. * Eg. to claim the email address "abcd@mock.com", the header * should be "Authorization: Bearer abcd". */ export declare function createMockServer(port: number): { server: import("https").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>; tlsSessionStore: Record<string, Buffer<ArrayBufferLike>>; };