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.
5 Replies
bekacru
bekacru3mo ago
it should be there when you use getSession
bwhitney
bwhitneyOP3mo ago
for some reason it's not. This is my setup in schema and authclient
No description
No description
bwhitney
bwhitneyOP3mo ago
No description
janusanus
janusanus3mo ago
that's not getSession() that's useSession
dgrcode
dgrcode2w ago
is this not compatible with the hook yet?

Did you find this page helpful?