fix unbuildable client

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

View File

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