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;
|
||||
console.log("fetchuser access token:", accessToken.value);
|
||||
const res = await fetchWithApi("/me") as UserResponse;
|
||||
res.avatar = res.avatar ?? "https://gorb.b-cdn.net/avatar/default-pfp.png";
|
||||
user.value = res;
|
||||
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,
|
||||
username: string,
|
||||
display_name: string | null,
|
||||
avatar: string | null,
|
||||
avatar: string,
|
||||
pronouns: string | null,
|
||||
email?: string,
|
||||
email_verified?: boolean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue