@simulacrum/auth0-simulator
Version:
Run local instance of Auth0 API for local development and integration testing
10 lines • 643 B
TypeScript
import type { ExtendedSimulationStore } from "../store";
import type { Request, RequestHandler } from "express";
import type { Auth0Configuration } from "../types";
export type Routes = "/heartbeat" | "/authorize" | "/login" | "/usernamepassword/login" | "/login/callback" | "/oauth/token" | "/v2/logout" | "/userinfo";
export type AuthSession = {
username: string;
nonce: string;
};
export declare const createAuth0Handlers: (simulationStore: ExtendedSimulationStore, serviceURL: (request: Request) => string, options: Auth0Configuration, debug: boolean) => Record<Routes, RequestHandler>;
//# sourceMappingURL=auth0-handlers.d.ts.map