1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
};
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
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