@esri/arcgis-rest-portal
Version:
ArcGIS Online and Enterprise content and user helpers for @esri/arcgis-rest-request
10 lines (9 loc) • 528 B
TypeScript
import { ArcGISIdentityManager } from "@esri/arcgis-rest-request";
/**
* Helper that returns the [user](https://developers.arcgis.com/rest/users-groups-and-items/user.htm) for a given portal.
*
* @param session
* @returns User url to be used in API requests.
* @deprecated This function requires a synchronous `username` on the session object which is not guaranteed. Use `getUser` instead. This function will be removed in the next release.
*/
export declare function getUserUrl(session: ArcGISIdentityManager): string;