Currently, userinfo provides the access token and the sub user/PK, while users/<pk> returns the perms and user type info.
We can combine the two API to reduce the workload in the client, by combining them into a single response i.e provide token, perms and user type info and pk in the userinfo directly avoiding the need for users/pk call.
After few analysis with @dsuren1 only the perms are required in the userinfo response json
Currently,
userinfoprovides the access token and the sub user/PK, whileusers/<pk>returns the perms and user type info.We can combine the two API to reduce the workload in the client, by combining them into a single response i.e provide token, perms and user type info and pk in the userinfo directly avoiding the need for users/pk call.
After few analysis with @dsuren1 only the perms are required in the userinfo response json