新版本v4.0,用户登录后,没有返回相应的用户角色信息


Could we please translate to english to help the community help you.

In version V4.0, no role information is displayed after a user logs in

I think you need in version 4 to populate it

yes,need in version 4 to populate it

So i guess as i said from the docs you can use populate.
users/1?populate=roles as an example

I tried, but I couldn’t

Someone can help me

Would it work for the /me route if you send the auth token with it ?

Looking forward to strapi’s reply

It’s been confirmed not working atm and currently a PR is in the works check github issues.

How do I change the code?

Is this issue fixed in the new version?

Why does the official version not support “Return Role Information after successful login”?

No need to double post you already asked the same question and it was answered.