JwtAuthMiddleware
in package
implements
MiddlewareInterface
FinalYes
JWT Auth middleware.
Table of Contents
Interfaces
- MiddlewareInterface
Properties
- $jwtAuth : JwtAuth
- $responseFactory : ResponseFactoryInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
Properties
$jwtAuth
private
JwtAuth
$jwtAuth
$responseFactory
private
ResponseFactoryInterface
$responseFactory
Methods
__construct()
public
__construct(JwtAuth $jwtAuth, ResponseFactoryInterface $responseFactory) : mixed
Parameters
- $jwtAuth : JwtAuth
- $responseFactory : ResponseFactoryInterface
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface