feat: favicon!!
This commit is contained in:
parent
cb5360c687
commit
256889a573
3 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ export const useAuth = () => {
|
||||||
if (!accessToken.value) return;
|
if (!accessToken.value) return;
|
||||||
console.log("fetchuser access token:", accessToken.value);
|
console.log("fetchuser access token:", accessToken.value);
|
||||||
const res = await fetchWithApi("/me") as UserResponse;
|
const res = await fetchWithApi("/me") as UserResponse;
|
||||||
|
res.avatar = res.avatar ?? "https://gorb.b-cdn.net/avatar/default-pfp.png";
|
||||||
user.value = res;
|
user.value = res;
|
||||||
return user.value;
|
return user.value;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 14 KiB |
|
@ -57,7 +57,7 @@ export interface UserResponse {
|
||||||
uuid: string,
|
uuid: string,
|
||||||
username: string,
|
username: string,
|
||||||
display_name: string | null,
|
display_name: string | null,
|
||||||
avatar: string | null,
|
avatar: string,
|
||||||
pronouns: string | null,
|
pronouns: string | null,
|
||||||
email?: string,
|
email?: string,
|
||||||
email_verified?: boolean
|
email_verified?: boolean
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue