# AuthenticatedMiddleware Class

Module
import { AuthenticatedMiddleware } from "@tsed/common"
Source/packages/common/src/mvc/components/AuthenticatedMiddleware.ts

# Overview

class AuthenticatedMiddleware implements IMiddleware {
    use(request: Req, endpoint: EndpointInfo): void;
}

# Description

This middleware manage the authentication based on passport strategy.

WARNING

This usage is deprecated in favor of UseAuth. See Authentication page.

:::

# Members

use(request: Req, endpoint: EndpointInfo): void