chore(frontend): Documentation & refactoring

Adding documentation to functions & some further refactoring.
This commit is contained in:
Gerald Schmittinger 2025-03-02 21:13:50 +01:00
parent 26d5c09bb4
commit d64b4505c8
4 changed files with 73 additions and 30 deletions

View file

@ -1,6 +1,9 @@
import apiClient from "@/services/api-client.ts";
import type {FrontendAuthConfig} from "@/services/auth/auth-types.ts";
/**
* Fetch the authentication configuration from the backend.
*/
export async function loadAuthConfig() {
const authConfig = (await apiClient.get<FrontendAuthConfig>("auth/config")).data;
return {