UNPKG

@auth/core

Version:

Authentication for the Web.

9 lines 631 B
import type { AuthConfig, RequestInternal, ResponseInternal } from "../../types.js"; export declare function toInternalRequest(req: Request, config: AuthConfig): Promise<RequestInternal | Error>; 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