These are the SDK reference docs. If you’re looking for docs to implement SuperTokens, you might want to check out the User Guides

Module framework/custom

Index

Functions

  • middleware<OrigReqType, OrigRespType>(wrapRequest?: (req: OrigReqType) => BaseRequest, wrapResponse?: (req: OrigRespType) => BaseResponse): (request: OrigReqType, response: OrigRespType, next?: NextFunction) => Promise<{ error: undefined; handled: boolean } | { error: any; handled: undefined }>
  • Type parameters

    Parameters

    Returns (request: OrigReqType, response: OrigRespType, next?: NextFunction) => Promise<{ error: undefined; handled: boolean } | { error: any; handled: undefined }>

      • (request: OrigReqType, response: OrigRespType, next?: NextFunction): Promise<{ error: undefined; handled: boolean } | { error: any; handled: undefined }>
      • Parameters

        • request: OrigReqType
        • response: OrigRespType
        • Optional next: NextFunction

        Returns Promise<{ error: undefined; handled: boolean } | { error: any; handled: undefined }>

Generated using TypeDoc