supertokens-node
Version:
NodeJS driver for SuperTokens core
8 lines (7 loc) • 876 B
TypeScript
import { Response, NextFunction, Request } from "express";
import { SessionRequest, VerifySessionOptions } from "./types";
import SessionRecipe from "./sessionRecipe";
export declare function verifySession(recipeInstance: SessionRecipe, options?: VerifySessionOptions | boolean): (request: SessionRequest, response: Response, next: NextFunction) => Promise<void>;
export declare function sendTryRefreshTokenResponse(recipeInstance: SessionRecipe, _: string, __: Request, response: Response, next: NextFunction): Promise<void>;
export declare function sendUnauthorisedResponse(recipeInstance: SessionRecipe, _: string, __: Request, response: Response, next: NextFunction): Promise<void>;
export declare function sendTokenTheftDetectedResponse(recipeInstance: SessionRecipe, sessionHandle: string, _: string, __: Request, response: Response, next: NextFunction): Promise<void>;