refactor(backend): Bestanden die enkel types of interfaces exporteren hernoemd naar *.d.ts
This commit is contained in:
parent
03c6ada0e5
commit
355c0a4eda
6 changed files with 3 additions and 3 deletions
22
frontend/src/services/auth/auth.d.ts
vendored
Normal file
22
frontend/src/services/auth/auth.d.ts
vendored
Normal 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};
|
Loading…
Add table
Add a link
Reference in a new issue