UNPKG

@authxyz/core

Version:

Authxyz core package for authentication implementations and providers.

20 lines (19 loc) 648 B
import { signAuth, signCookieAuth, signJwtAuth } from "./sign.js"; import { middlewareProtect, middlewareValidateAuthorization, useProtect } from "./middleware.js"; import { jwtError } from "./errors.js"; declare const core: { sign: { signAuth: typeof signAuth; signCookieAuth: typeof signCookieAuth; signJwtAuth: typeof signJwtAuth; }; middlewares: { middlewareProtect: typeof middlewareProtect; middlewareValidateAuthorization: typeof middlewareValidateAuthorization; useProtect: typeof useProtect; }; errors: { jwtError: typeof jwtError; }; }; export default core;