我正在使用预令牌生成触发器将自定义声明插入我的令牌。声明之一是列表:
exports.handler = (event, context, callback) => {
event.response = {
"claimsOverrideDetails": {
"claimsToAddOrOverride": {
"subscription_name": "FLEXI",
"subscriptions" : {
"id": "Wakanda",
"country": "Namibia"
}
},
"claimsToSuppress": ["token_use"]
}
};
callback(null, event);
}
我在做什么错了?