export const authMiddleware = async (request: any, reply: any) => {
  // stub: authenticate request and attach `user` to request in real implementation
  request.user = request.user || { sub: 'anonymous' };
};

export default authMiddleware;
