From 3dfce9d3a4ad07ca6c0729ff26a39b151882c323 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Thu, 5 Jan 2023 09:41:23 -0800 Subject: [PATCH] adding patient profile link. --- frontend/src/app/components/header/header.component.html | 4 ++-- frontend/src/app/services/auth.service.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 }