feat: profile picture support

This commit is contained in:
2025-05-24 17:46:06 +02:00
parent 47f5188961
commit 68899e98bd
4 changed files with 19 additions and 2 deletions

View File

@ -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,