fix: return unsupported for email and kdf flows

This commit is contained in:
shuaiplus
2026-07-06 01:35:12 +08:00
parent 1bad32fd90
commit cde4555add
6 changed files with 91 additions and 8 deletions
+4
View File
@@ -136,6 +136,10 @@ export function errorResponse(message: string, status: number = 400): Response {
);
}
export function unsupportedResponse(message: string = 'This feature is not supported by this server.'): Response {
return errorResponse(message, 501);
}
// Identity endpoint error response (for /identity/connect/token)
export function identityErrorResponse(message: string, error: string = 'invalid_grant', status: number = 400): Response {
return jsonResponse(