refactor(frontend): Algemene linting fouten

This commit is contained in:
Tibo De Peuter 2025-03-23 12:04:54 +01:00
parent 8efce6bee0
commit dd1000c662
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
9 changed files with 26 additions and 25 deletions

View file

@ -1,10 +1,11 @@
import apiClient from "@/services/api-client.ts";
import type { FrontendAuthConfig } from "@/services/auth/auth.d.ts";
import type {UserManagerSettings} from "oidc-client-ts";
/**
* Fetch the authentication configuration from the backend.
*/
export async function loadAuthConfig() {
export async function loadAuthConfig(): Promise<Record<string, UserManagerSettings>> {
const authConfig = (await apiClient.get<FrontendAuthConfig>("auth/config")).data;
return {
student: {