Substitute hardcoded auth modes for variables

This commit is contained in:
Tuan Dang
2023-04-07 16:50:05 +03:00
parent a7880db871
commit 5bbe09e4be
31 changed files with 285 additions and 155 deletions
+13 -2
View File
@@ -1,5 +1,10 @@
import * as express from 'express';
import { ISecret } from '../../models';
import {
IUser,
IServiceAccount,
IServiceTokenData,
ISecret
} from '../../models';
// TODO: fix (any) types
declare global {
@@ -24,7 +29,13 @@ declare global {
serviceTokenData: any;
apiKeyData: any;
query?: any;
authData: any;
authData: {
authMode: string;
authPayload: IUser | IServiceAccount | IServiceTokenData;
};
requestData: {
[key: string]: string
};
}
}
}