When you login with a user you will get a token back. You can then use the token and make a call to /users/me and it will give the role back in that response. It’s an extra call but saves you from modifying the auth local login provider etc.
In the response you can do
response.role.name to get the name of the role it’s an object looking like this
"role": {
"id": "string",
"name": "string",
"description": "string",
"type": "string",
"permissions": [
"string"
],
"users": [
"string"
],
"created_by": "string",
"updated_by": "string"
},