diff --git a/frontend/src/app/components/header/header.component.html b/frontend/src/app/components/header/header.component.html index cce2a095..bfd37b53 100644 --- a/frontend/src/app/components/header/header.component.html +++ b/frontend/src/app/components/header/header.component.html @@ -64,11 +64,11 @@
-
+
-
{{current_user_claims.full_name || current_user_claims.email || current_user_claims.sub}}
+
{{current_user_claims.full_name || current_user_claims.sub || current_user_claims.email }}
Adminstrator
diff --git a/frontend/src/app/services/auth.service.ts b/frontend/src/app/services/auth.service.ts index 504db3da..25cafcc6 100644 --- a/frontend/src/app/services/auth.service.ts +++ b/frontend/src/app/services/auth.service.ts @@ -172,6 +172,7 @@ export class AuthService { //parse the authToken to get user information let jwtClaims = jose.decodeJwt(authToken) + // @ts-ignore return jwtClaims as UserRegisteredClaims }