Admin Plugin - access "role" client side

How can i get role to appear on user object client side. I want to have logic that shows UI based on a users role.
4 Replies
bekacru
bekacru2w ago
it should be there when you use getSession
bwhitney
bwhitneyOP2w ago
for some reason it's not. This is my setup in schema and authclient
No description
No description
bwhitney
bwhitneyOP2w ago
No description
janusanus
janusanus2w ago
that's not getSession() that's useSession

Did you find this page helpful?