getSession

Function

DEPRECATED: Applications should manage storage/retrieval of serialized ArcGISContexts. Please see ArcGISContextManager.serialize(...) and ArcGISContextManager.deserialize(...) Re-hydrate a UserSession from a browser's local storage. If not found,

  • getSession(clientId: string, win: any) : UserSession | null

Parameters

Parameter Type Default Notes
clientId Required string

oAuth Client Id

win Optional any window

optional window (used for testing)

Returns

UserSession | null

Function defined in common/src/utils/sessionLocalStorage.ts:30