@esri/arcgis-rest-auth
Version:
Authentication helpers for @esri/arcgis-rest-js.
10 lines (9 loc) • 329 B
TypeScript
import { ITokenRequestOptions } from "@esri/arcgis-rest-request";
export interface IFetchTokenResponse {
token: string;
expires: Date;
username: string;
ssl: boolean;
refreshToken?: string;
}
export declare function fetchToken(url: string, requestOptions: ITokenRequestOptions): Promise<IFetchTokenResponse>;