refactor(backend): Bestanden die enkel types of interfaces exporteren hernoemd naar *.d.ts

This commit is contained in:
Gerald Schmittinger 2025-03-06 13:28:24 +01:00
parent 03c6ada0e5
commit 355c0a4eda
6 changed files with 3 additions and 3 deletions

22
frontend/src/services/auth/auth.d.ts vendored Normal file
View file

@ -0,0 +1,22 @@
import {type User, UserManager} from "oidc-client-ts";
export type AuthState = {
user: User | null,
accessToken: string | null,
activeRole: Role | null
};
export type FrontendAuthConfig = {
student: FrontendIdpConfig,
teacher: FrontendIdpConfig
};
export type FrontendIdpConfig = {
authority: string,
clientId: string,
scope: string,
responseType: string
};
export type Role = "student" | "teacher";
export type UserManagersForRoles = {student: UserManager, teacher: UserManager};