From db6c735fdc648b14be0b072a60e94336fa6d9f84 Mon Sep 17 00:00:00 2001 From: primakov Date: Wed, 21 Feb 2024 17:38:22 +0300 Subject: [PATCH] check-sso or login --- src/index.tsx | 1 + src/pages/Journal.tsx | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index e5541c0..de206d2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -14,6 +14,7 @@ const start = async () => { console.log(`User is ${authenticated ? 'authenticated' : 'not authenticated'}`); } catch (error) { console.error('Failed to initialize adapter:', error); + keycloak.login(); } } diff --git a/src/pages/Journal.tsx b/src/pages/Journal.tsx index 0f39661..5ad29bc 100644 --- a/src/pages/Journal.tsx +++ b/src/pages/Journal.tsx @@ -88,10 +88,12 @@ export const Journal = () => { return ( - - - -
{JSON.stringify(answer, null, 4)}
+
+ + + +
{JSON.stringify(answer, null, 4)}
+
Название новой лекции: