1 Answer
- Newest
- Most votes
- Most comments
0
So finally I got it to work like this. Instead of overriding the whole response, I only overrode the event.response.claimsOverrideDetails:
exports.handler = async (event, context) => {
event.response.claimsOverrideDetails = {
"claimsToAddOrOverride": {
"attribute_key2": "attribute_value2",
"attribute_key": "attribute_value"
}
};
return event
};
answered 2 years ago
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
This probably doesn't help, but I had the same issue until I added a 'return event;' after the callback. The weird thing is that it now still works even when I take out the return line.
Thanks @rePost-User-7943174 I have tried your approach but I still got the same error.
After calling
callback(null, event)
I added the statementreturn event
but it lead to the same error