getGroupsFromToken is a function will extract and return the groups from the passed token
/* NavigaID should be imported and exported in your plugin's index.js Or you can import from 'Dashboard/modules' */import { NavigaID} from'@root'constuserToken=awaitNavigaID.getUserToken()constgroups=NavigaID.getGroupsFromToken(userToken)