feat: profile picture support
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user