docs(api): do not log full error

This commit is contained in:
Jan De Dobbeleer 2023-03-23 13:39:02 +01:00 committed by Jan De Dobbeleer
parent d99f0658d7
commit d222ce0211

View file

@ -38,7 +38,9 @@ module.exports = async function (context, req) {
} catch (error) {
context.log(error);
context.res = {
body: error,
body: {
"message": (error.message) ? error.message : "unable to refresh token"
},
status: 500
};
}