How to get user's role on server side (API)

I am setting user roles in Rules.
I wish then to check that the user holds the correct role (admin) in order to allow certain actions.
How can I check that on a node (express.js) API?

If you have stored the roles as part of the user profile data, you can access it by requesting the user profile, or from the id_token of the user.

Here is a quick start for the node.

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?