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'}`); console.log(`User is ${authenticated ? 'authenticated' : 'not authenticated'}`);
} catch (error) { } catch (error) {
console.error('Failed to initialize adapter:', error); console.error('Failed to initialize adapter:', error);
keycloak.login();
} }
} }

View File

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