How to get login user details in strapi

 when someone is logged in through api and validate using JWT token then by the help of custom code in controller we can get the user value

async create(ctx) {
        //for user details
        ctx.state.user //this contains all the information about user

Leave a Comment

Your email address will not be published. Required fields are marked *