getApplicationToken

getApplicationToken is a promise function will be resolved with the application token by passing your application client credentials

/*
    NavigaID should be imported and exported in your plugin's index.js
    Or you can import from 'Dashboard/modules' 
*/
import {
    NavigaID
} from '@root'

const applicationToken = await NavigaID.getApplicationToken({
    scope = [],
    clientId: 'xxx-xxx-xxx',
    clientSecret: 'xxx-xxx-xxx'
})

Last updated