How to access ctx.state.user in controller [strapi v4]

I’ve found my mistake. In the customed route config, “auth” field was set to false. This explains why I couldn’t get the ctx.state.user. Sorry for the inconvenience