login and authentication
login via totp authentication via access and refresh tokens
This commit is contained in:
parent
6696975bee
commit
e1ec65350d
28 changed files with 3750 additions and 0 deletions
13
src/type/jwtTypes.ts
Normal file
13
src/type/jwtTypes.ts
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue