Add user's name to UserMenu

This commit is contained in:
Deluan 2020-11-02 17:13:12 -05:00
parent 7fbdcf8ddc
commit fd1604b1d2
1 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,13 @@ const authProvider = {
const role = localStorage.getItem('role')
return role ? Promise.resolve(role) : Promise.reject()
},
getIdentity: () => {
return {
id: localStorage.getItem('username'),
fullName: localStorage.getItem('name'),
}
},
}
const removeItems = () => {