check-sso or login

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-02-21 17:38:22 +03:00
parent c38f31b0ff
commit db6c735fdc
2 changed files with 7 additions and 4 deletions

View File

@ -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();
}
}

View File

@ -88,10 +88,12 @@ export const Journal = () => {
return (
<StartWrapper>
<IconButton onClick={send} title="Запрос">
<ArrowImg src={arrow} />
</IconButton>
<pre>{JSON.stringify(answer, null, 4)}</pre>
<div>
<IconButton onClick={send} title="Запрос">
<ArrowImg src={arrow} />
</IconButton>
<pre>{JSON.stringify(answer, null, 4)}</pre>
</div>
<form onSubmit={handleSubmit}>
<InputWrapper>
<InputLabel htmlFor="input">Название новой лекции:</InputLabel>