getGroupsFromToken

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'

const userToken = await NavigaID.getUserToken()
const groups = NavigaID.getGroupsFromToken(userToken)

Last updated