UNPKG

@auth/core

Version:

Authentication for the Web.

10 lines 673 B
import type { RequestInternal, ResponseInternal } from "../../types.js"; import type { AuthConfig } from "../../index.js"; export declare function toInternalRequest(req: Request, config: AuthConfig): Promise<RequestInternal | undefined>; export declare function toRequest(request: RequestInternal): Request; export declare function toResponse(res: ResponseInternal): Response; /** Web compatible method to create a hash, using SHA256 */ export declare function createHash(message: string): Promise<string>; /** Web compatible method to create a random string of a given length */ export declare function randomString(size: number): string; //# sourceMappingURL=web.d.ts.map