Skip to content

Commit

Permalink
Fixes JWT token refresh interval default fallback to 5 mins (instead …
Browse files Browse the repository at this point in the history
…of 15 mins) (#6466)

* fix JWT token refresh fallback interval

* remove jwt_token_refresh_interval from `config.json`
  • Loading branch information
rithviknishad authored and Ashesh3 committed Oct 20, 2023
1 parent 2d8b7bc commit 35770f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions public/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"site_url": "care.coronasafe.in",
"analytics_server_url": "https://plausible.10bedicu.in",
"header_logo": {
"light":"https://cdn.coronasafe.network/header_logo.png",
"dark":"https://cdn.coronasafe.network/header_logo.png"
"light": "https://cdn.coronasafe.network/header_logo.png",
"dark": "https://cdn.coronasafe.network/header_logo.png"
},
"main_logo": {
"light":"https://cdn.coronasafe.network/light-logo.svg",
"dark":"https://cdn.coronasafe.network/black-logo.svg"
"light": "https://cdn.coronasafe.network/light-logo.svg",
"dark": "https://cdn.coronasafe.network/black-logo.svg"
},
"gmaps_api_key": "AIzaSyDsBAc3y7deI5ZO3NtK5GuzKwtUzQNJNUk",
"gov_data_api_key": "579b464db66ec23bdd000001cdd3946e44ce4aad7209ff7b23ac571b",
Expand All @@ -22,6 +22,5 @@
"kasp_full_string": "Karunya Arogya Suraksha Padhathi",
"sample_format_asset_import": "https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=11JaEhNHdyCHth4YQs_44YaRlP77Rrqe81VSEfg1glko&exportFormat=xlsx",
"sample_format_external_result_import": "https://docs.google.com/spreadsheets/d/17VfgryA6OYSYgtQZeXU9mp7kNvLySeEawvnLBO_1nuE/export?format=csv&id=17VfgryA6OYSYgtQZeXU9mp7kNvLySeEawvnLBO_1nuE",
"enable_abdm": true,
"jwt_token_refresh_interval": 300000
"enable_abdm": true
}
2 changes: 1 addition & 1 deletion src/Providers/AuthUserProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function AuthUserProvider({ children, unauthorized }: Props) {
updateRefreshToken(true);
setInterval(
() => updateRefreshToken(),
jwt_token_refresh_interval ?? 5 * 60 * 3000
jwt_token_refresh_interval ?? 5 * 60 * 1000
);
}, [data, jwt_token_refresh_interval]);

Expand Down

0 comments on commit 35770f1

Please sign in to comment.