Hi.
I’m currently watching a nice Strapi v3 + Svelte tutorial on Udemy and I came across a thing that was already floating around in my head.
In the aforementioned tutorial, the response from the Strapi v3 auth request contains, within the data.user
object, also the role
object which I can then use in my user
store.
My question is what is the rationale behind the decision to remove the user role from the auth response in Strapi V4? Now we have the classic undefetching / overfetching scenario that comes with the REST API, and I’m not able to see any benefits.
Cheers.