ApplicationSession
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
Methods
getToken
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
url Required | string | ||
requestOptions Optional | ITokenRequestOptions |
Returns
Promise<string>
refreshToken
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
requestOptions Optional | ITokenRequestOptions |
Returns
Promise<string>
Class defined in packages/arcgis-rest-auth/src/ApplicationSession.ts:58