How to create a user login with specific roles using OKTA and angular?

Hello, I’m working on a SPA that uses auth.js and want to establish a user login with certain roles, i.e., the angular application should be able to identify the role that the user has been assigned and only perform those actions. Could someone help out? Thanks in advance