diff --git a/web/src/api/login.ts b/web/src/api/login.ts
index 7539e91..d541e9b 100644
--- a/web/src/api/login.ts
+++ b/web/src/api/login.ts
@@ -9,6 +9,7 @@ export interface LoginResponse {
id: string;
email: string;
full_name: string;
+ profile_picture: string;
access: string;
refresh: string;
}
diff --git a/web/src/feature/AccountList/index.tsx b/web/src/feature/AccountList/index.tsx
index f86f84b..b76deca 100644
--- a/web/src/feature/AccountList/index.tsx
+++ b/web/src/feature/AccountList/index.tsx
@@ -48,8 +48,18 @@ const AccountList: FC = () => {
className="flex flex-row items-center p-4 border-gray-200 dark:border-gray-700/65 border-b border-r-0 border-l-0 select-none cursor-pointer hover:bg-gray-50/50 dark:hover:bg-gray-800/10 transition-colors mb-0"
>
-
-
+
+ {account.profilePicture ? (
+

+ ) : (
+
+
+
+ )}
diff --git a/web/src/pages/Login/index.tsx b/web/src/pages/Login/index.tsx
index 2891247..2f3e266 100644
--- a/web/src/pages/Login/index.tsx
+++ b/web/src/pages/Login/index.tsx
@@ -49,6 +49,7 @@ export default function LoginPage() {
accountId: response.id,
label: response.full_name,
email: response.email,
+ profilePicture: response.profile_picture,
access: response.access,
refresh: response.refresh,
});
diff --git a/web/src/repository/account.ts b/web/src/repository/account.ts
index 1d38136..eb52865 100644
--- a/web/src/repository/account.ts
+++ b/web/src/repository/account.ts
@@ -6,6 +6,7 @@ export interface RawLocalAccount {
accountId: string;
label: string;
email: string;
+ profilePicture: string;
access: { data: number[]; iv: number[] };
refresh: { data: number[]; iv: number[] };
updatedAt: string;
@@ -15,6 +16,7 @@ export interface LocalAccount {
accountId: string;
label: string;
email: string;
+ profilePicture: string;
access: string;
refresh: string;
updatedAt: string;
@@ -24,6 +26,7 @@ export interface CreateAccountRequest {
accountId: string;
label: string;
email: string;
+ profilePicture: string;
access: string;
refresh: string;
}
@@ -91,6 +94,7 @@ export const useAccountRepo = () => {
accountId: req.accountId,
label: req.label,
email: req.email,
+ profilePicture: req.profilePicture,
access,
refresh,
updatedAt: new Date().toISOString(),
@@ -117,6 +121,7 @@ export const useAccountRepo = () => {
accountId: account.accountId,
label: account.label,
email: account.email,
+ profilePicture: account.profilePicture,
access: accessToken,
refresh: refreshToken,
updatedAt: account.updatedAt,