AuthMiddleware - Authentication middleware helpers.
Static
Middleware to require authentication. Redirects to client with error if not authenticated.
Middleware to check if user is authenticated (JSON response). Returns 401 if not authenticated.
AuthMiddleware - Authentication middleware helpers.