fix unbuildable client

This commit is contained in:
Fran Jurmanović
2025-09-14 19:08:34 +02:00
parent 373adcb49d
commit 00ea8c4f97

View File

@@ -29,6 +29,7 @@ export async function loginUser(username: string, password: string) {
return { token, user: userResponse }; return { token, user: userResponse };
} }
export async function getCurrentUser(token: string) { export async function getCurrentUser(token: string): Promise<User> {
return fetchServerAPI<User>(`${authRoute}/me`, token); const response = await fetchServerAPI<User>(`${authRoute}/me`, token);
return response.data!;
} }