Return relations on user login

Not sure if there is a more appropriate place for this, so please redirect accordingly.

Using the users/permissions plugin and I noticed no relational fields are returned in the user object from a call to /auth/local. Somewhat frustrating as one then requires an additional api request to get that data and display to a user on login.

Is there any way to get relational fields on login? Can’t seem to see an easy way to integrate populations here. Maybe custom controller/db lifecycle hook?

I decided to just fetch “users/me?populate=*” as it does populate relations. The request to log-in or register routes returns jwt, which we can use to make authenticated request to users/me with relations. It’s an extra request, but it’s easier than making a custom backend logic