I am using:
Currently - I have it configured so that any user that logs in will be given the role “user”.
The issue I am having is that I have a variety of roles that I want to configure with permissions etc.
The method above seems to only add a “roles” field to their app_metadata - it does not in fact add them to the user role that I created on the roles webpage.
How would I be able to implement this, so that it updates both the app_metadata and also the actual “roles” that I have created?
Secondly - is there a way to get app_metadata.roles (or the user role) to the root attributes, so that I can check what type of user they are before determining what content to show them on my app?
Currently to call this info I am user the PHP example with $userInfo[‘roles’].