/
Rainmaker - Localstorage
Rainmaker - Localstorage
What all we store in localstorage?
Key | Description | citizen key | employee key |
---|---|---|---|
path | |||
previousFloorNo | used for PT floor no storage | ||
tenant-id | user tenant id from user-service | Employee.tenant-id | Citizen.tenant-id |
expires-in | timestamps | Citizen.expires-in | Employee.expires-in |
refresh-token | refresh token from user-service | Citizen.refresh-token | Employee.refresh-token |
breadCrumbObject | breadcrumb for mobile | ||
token | auth token | Citizen.token | Employee.token |
menuName | Citizen.menuName | Employee.menuName | |
user-info | user info from user-service | Citizen.user-info | Employee.user-info |
localization_en_IN | localization key values from localization service | ||
last-login-time | timestamp | Citizen.last-login-time | Employee.last-login-time |
businessServiceData | workflow data | Citizen.businessServiceData | Employee.businessServiceData |
locale | language index | Citizen.locale | Employee.locale |
menuPath | Citizen.menuPath | Employee.menuPath |
- Key & values are stored separately for citizen and employee to maintain the same session login for both apps
Uitlity functions to fetch the localstorage values are listed below, please always use the below functions to fetch and set the values.
Get methods
- getAccessToken()
- getUserInfo()
- getTenantId()
- getLocalization()
- getLocale()
set methods
- setUserInfo()
- setAccessToken()
- setRefreshToken()
- setTenantId()
- setLocale()
- setReturnUrl()
Please refer \egov-web-app\web\rainmaker\dev-packages\egov-ui-kit-dev\src\utils\localStorageUtils\index.js for more details.
, multiple selections available,
Related content
How to add dynamic drop down for mdms data
How to add dynamic drop down for mdms data
Read with this
Localization configurations and setup.
Localization configurations and setup.
More like this
Guidelines and principles of egov Frontend
Guidelines and principles of egov Frontend
Read with this
Localization Configurations at UI
Localization Configurations at UI
More like this
Configuration definition
Configuration definition
Read with this
Language Selection
Language Selection
More like this