ApplicationSession

Class
import { ApplicationSession } from '@esri/arcgis-rest-auth';
const session = new ApplicationSession({
  clientId: "abc123",
  clientSecret: "sshhhhhh"
})
// visit https://developers.arcgis.com to generate your own clientid and secret

You can use App Login to access premium content and services in ArcGIS Online.

Implements

Constructors

Constructor Parameters

Parameter Type Default Notes
options Required IApplicationSessionOptions

Properties

Property Type Notes
portal string

Methods

Method Returns Notes
Promise<string>
Promise<>
Promise<string>

getToken

Class Method

Parameters

Parameter Type Default Notes
url Required string
requestOptions Optional ITokenRequestOptions

Returns

Promise<string>

refreshSession

Class Method

  • refreshSession() : Promise<>

Returns

Promise<>

refreshToken

Class Method

Parameters

Parameter Type Default Notes
requestOptions Optional ITokenRequestOptions

Returns

Promise<string>

Class defined in packages/arcgis-rest-auth/src/ApplicationSession.ts:58