I'm using Okta for user authentication of my SPA (+ Express backend). How can I use the Okta API to show/hide content based on group membership?
e.g. if I want to show some menu items if the active user is a member of a specific group.
Is there anything in the Okta React SDK? I'm coming up short, product seems great, docs seems less so.
I've found this API https://developer.okta.com/docs/api/resources/users.html#get-member-groups
I'm however unsure of how to best use this from my app. when and where should I call it, should I store group membership in some object and then pass that to all my sub components?
Any ideas and directions are welcome