login and authentication

login via totp
authentication via access and refresh tokens
This commit is contained in:
Julian Krauser 2024-08-22 11:40:31 +02:00
parent 6696975bee
commit e1ec65350d
28 changed files with 3750 additions and 0 deletions

13
src/type/jwtTypes.ts Normal file
View file

@ -0,0 +1,13 @@
export type JWTData = {
[key: string]: string | number | Array<string>;
};
export type JWTToken = {
userId: number;
username: string;
rights: Array<string>;
} & JWTData;
export type JWTRefresh = {
userId: number;
} & JWTData;