Options
All
  • Public
  • Public/Protected
  • All
Menu

Module authMiddleware

Index

Type aliases

BearerError

BearerError: Error & { status?: number; statusCode?: number; toJSON?: any }

Functions

Const bearer

Const expressBearer

  • expressBearer(options: AuthistOptions): (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>> & { user?: User }, response: Response<any, Record<string, any>>, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>
  • Parameters

    Returns (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>> & { user?: User }, response: Response<any, Record<string, any>>, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>

      • (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>> & { user?: User }, response: Response<any, Record<string, any>>, next: NextFunction): Promise<void | Response<any, Record<string, any>>>
      • Parameters

        • request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>> & { user?: User }
        • response: Response<any, Record<string, any>>
        • next: NextFunction

        Returns Promise<void | Response<any, Record<string, any>>>

Const expressRecoverPassword

  • expressRecoverPassword(options: AuthistOptions): (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>
  • Parameters

    Returns (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>

      • (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction): Promise<void | Response<any, Record<string, any>>>
      • Parameters

        • request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
        • response: Response<any, Record<string, any>>
        • next: NextFunction

        Returns Promise<void | Response<any, Record<string, any>>>

Const expressRefreshToken

  • expressRefreshToken(options: AuthistOptions): (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>
  • Parameters

    Returns (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>

      • (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction): Promise<void | Response<any, Record<string, any>>>
      • Parameters

        • request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
        • response: Response<any, Record<string, any>>
        • next: NextFunction

        Returns Promise<void | Response<any, Record<string, any>>>

Const expressResetPassword

  • expressResetPassword(options: AuthistOptions): (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>
  • Parameters

    Returns (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>

      • (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, next: NextFunction): Promise<void | Response<any, Record<string, any>>>
      • Parameters

        • request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
        • response: Response<any, Record<string, any>>
        • next: NextFunction

        Returns Promise<void | Response<any, Record<string, any>>>

Generated using TypeDoc