fix(Auth): Error type in json payload
This commit is contained in:
committed by
mrugesh mohapatra
parent
e1c5b8a894
commit
a1530c041a
@@ -89,6 +89,7 @@ export default function prodErrorHandler() {
|
||||
} else if (type === 'json') {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
return res.send({
|
||||
type: handled.type || 'errors',
|
||||
message
|
||||
});
|
||||
// plain text
|
||||
|
Reference in New Issue
Block a user