mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
support OIDC authentication (#242)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user