kc params from env

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-01-07 16:20:20 +03:00
parent cc7f3d3371
commit a7168231a1
5 changed files with 899 additions and 1787 deletions

View File

@@ -1,9 +1,7 @@
import Keycloak from 'keycloak-js';
export const keycloak = new Keycloak({
url: 'https://kc.bro-js.ru',
realm: 'bro-js',
clientId: 'journal'
url: KC_URL,
realm: KC_REALM,
clientId: KC_CLIENT_ID,
});
window.keycloak = keycloak;