import { localStorageService } from '../../../../utils/storage' ; import { SESSION_TIME_STAMP_STORAGE_KEY } from '../constants' ; import { HistoryQueriesXStoreModule } from '../types' ; /**
 * Default implementation for the  HistoryQueriesActions . refreshSession .
 *
 *  param context - The  https of the actions,
 * provided by Vuex.
 *  public export const refreshSession = ( { state , commit } ) => { const sessionTimeStampInMs = localStorageService . getItem < number > ( SESSION_TIME_STAMP_STORAGE_KEY ) ?? Date . now ( ) ; localStorageService . setItem ( SESSION_TIME_STAMP_STORAGE_KEY , sessionTimeStampInMs , state . config . sessionTTLInMs ) ; commit ( 'setSessionTimeStamp' , sessionTimeStampInMs ) ; } ;