How to access ctx.state.user in Middleware?

Thank you

"use strict";

module.exports = (config, { strapi }) => {
  return async (ctx, next) => {
    const { user } = ctx.state;

    console.log("ctx.state:", ctx.state);

    await next();
  };
};```