diff --git a/src/components/Login/account-nav.tsx b/src/components/Login/account-nav.tsx index 33cb69fba..a35798911 100644 --- a/src/components/Login/account-nav.tsx +++ b/src/components/Login/account-nav.tsx @@ -21,7 +21,7 @@ export default function AccountNavigation() { return (
{isAuthenticated ? ( -
Authenticated: {user?.email}
+
Authenticated: {user?.name}
) : (
Not Authenticated
)} diff --git a/src/lib/utils.ts b/src/lib/utils.ts index aed9d8b04..df91887e2 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -4,10 +4,11 @@ export const TOKEN_COOKIE_NAME = '__timefyi_jt__'; export type TokenPayload = { id: string; email: string; + name: string; }; export function decodeToken(token: string): TokenPayload { const claims = jose.decodeJwt(token); return claims as TokenPayload; -} \ No newline at end of file +}