@esri/arcgis-rest-auth
Version:
Authentication helpers for @esri/arcgis-rest-js.
19 lines (18 loc) • 622 B
TypeScript
import { ApplicationSession } from "./ApplicationSession";
import { UserSession } from "./UserSession";
import { IRequestOptions } from "@esri/arcgis-rest-request";
/**
* Used internally by packages for requests that require user authentication.
*/
export interface IAuthenticatedRequestOptions extends IRequestOptions {
authentication: UserSession | ApplicationSession;
}
/**
* Used internally by packages for requests that require authentication.
*/
export interface IUserRequestOptions extends IRequestOptions {
/**
* A session representing a logged in user.
*/
authentication: UserSession;
}