edit FE shorlink auth, no login route, deployed dicomv.aplikasi.web.id

This commit is contained in:
mario
2025-05-23 14:15:27 +07:00
parent e40d2f0e1d
commit 0283fb5f61
7 changed files with 32 additions and 11 deletions

View File

@@ -88,7 +88,8 @@ function createDicomWebApi(dicomWebConfig, servicesManager) {
const authToken = sessionStorage.getItem('ohif-auth-token');
if (!authToken) {
window.location.href = '/login';
// window.location.href = '/login'; // Kalau mau pakae login tinggal uncomment
window.location.href = '/';
return;
}
xhrRequestHeaders.Authorization = `Bearer ${authToken}`;