Incorrect user info in the head when using lightweight access token for account-console

closes #28624

Signed-off-by: mposolda <mposolda@gmail.com>
This commit is contained in:
mposolda 2024-04-11 12:09:03 +02:00 committed by Marek Posolda
parent 8f8094408e
commit ca00395877

View file

@ -66,7 +66,7 @@ const KeycloakMasthead = ({
);
}
const picture = keycloak.tokenParsed?.picture;
const picture = keycloak.idTokenParsed?.picture;
return (
<PageHeader
{...rest}
@ -101,7 +101,7 @@ const KeycloakMasthead = ({
dropDownItems={[...dropdownItems, extraItems]}
title={
hasUsername
? loggedInUserName(keycloak.tokenParsed, t)
? loggedInUserName(keycloak.idTokenParsed, t)
: undefined
}
/>