How to use the @esri/arcgis-rest-auth.generateToken function in @esri/arcgis-rest-auth

To help you get started, we’ve selected a few @esri/arcgis-rest-auth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Esri / ember-arcgis-portal-services / addon / services / user-service.js View on Github external
generateToken (params, portalOpts) {
    const url = `${this.getPortalRestUrl(portalOpts)}/generateToken?f=json`;
    const args = this.addOptions({params}, portalOpts);
    return generateToken(url, args);
  },