Can we check the user role from client side?

Using Moralis React SDK, can we check the role for the current user? Need this to check if the current user is an admin or not.

I couldn’t find an answer in the docs or the forum. Any help would be appreciated.

You should be able to query the _Role Class for ‘admin’ and then check users on it. You can do this in a cloud function and then call it from your frontend.