The endpoint /api/user/info currently returns an object with a role field which is a single string. Change this field to a roles field which is an array of strings. Users can actually have multiple roles so this will allow us to return all the roles a user has.
The endpoint
/api/user/info
currently returns an object with a role field which is a single string. Change this field to a roles field which is an array of strings. Users can actually have multiple roles so this will allow us to return all the roles a user has.