@alfabit/keycloak 0.0.27 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfabit/keycloak",
3
3
  "private": false,
4
- "version": "0.0.27",
4
+ "version": "0.0.30",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
7
7
  "main": "src/index.ts",
@@ -366,9 +366,9 @@ export async function initKeycloak() {
366
366
 
367
367
  keycloak.value && (keycloak.value.onAuthLogout = () => {
368
368
  console.warn('>>>>>>>> Сессия истекла');
369
- // например, показать уведомление
370
- // или открыть собственное модальное окно логина
371
- });
369
+ // например, показать уведомление
370
+ // или открыть собственное модальное окно логина
371
+ });
372
372
 
373
373
 
374
374
 
@@ -416,14 +416,14 @@ export async function initKeycloak() {
416
416
  isAuth.value = true;
417
417
  try {
418
418
  postWebLogin();
419
- } catch (e) {}
419
+ } catch (e) { }
420
420
 
421
421
  //setTimeout(() => {
422
422
  setInterval(async () => {
423
423
  if (!keycloak.value) return;
424
424
 
425
425
 
426
- try{
426
+ try {
427
427
  const res = await keycloak.value.updateToken(70);
428
428
  if (res) {
429
429
  setTokens();
@@ -431,10 +431,10 @@ export async function initKeycloak() {
431
431
  isAuth.value = true;
432
432
  try {
433
433
  postWebLogin();
434
- } catch {}
434
+ } catch { }
435
435
  }
436
436
  }
437
- catch(e){
437
+ catch (e) {
438
438
  console.warn('Ошибка Keycloak:', e);
439
439
  keycloak.value?.clearToken();
440
440
  }