Class AuthMiddleware

Injectable middleware responsible for handling JWT and OAuth2 authentication.

Name

AuthMiddleware

Implements

Hierarchy

  • AuthMiddleware

Implements

  • NestMiddleware

Constructors

Properties

Methods

Constructors

Properties

authService: SecureAuthService

The SecureAuthService used for authentication and user validation.

Methods

  • Middleware function to handle JWT and OAuth2 authentication.

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      The Express Request object.

    • res: Response<any, Record<string, any>>

      The Express Response object.

    • next: NextFunction

      The NextFunction to continue the middleware chain.

    Returns void

    Function

    Async

    Name

    use

Generated using TypeDoc