support OIDC authentication (#242)

This commit is contained in:
MaysWind
2025-10-24 01:44:55 +08:00
parent d3ab2b94b7
commit 85b05f9e7e
24 changed files with 490 additions and 202 deletions
+11
View File
@@ -9,3 +9,14 @@ export interface ErrorResponse {
readonly errorMessage: string;
readonly path: string;
}
export function buildErrorResponse(errorCode: number, errorMessage: string): ErrorResponse {
const errorResponse: ErrorResponse = {
success: false,
errorCode: errorCode,
errorMessage: errorMessage,
path: ''
};
return errorResponse;
}