From dfe28df90b38505faa724d980838c1e63d93fff4 Mon Sep 17 00:00:00 2001 From: Pietfried <37657534+Pietfried@users.noreply.github.com> Date: Fri, 28 Jul 2023 14:04:13 +0200 Subject: [PATCH] changed type to authorization_type in nodered flow! (#297) Signed-off-by: pietfried --- config/nodered/config-sil-two-evse-flow.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/nodered/config-sil-two-evse-flow.json b/config/nodered/config-sil-two-evse-flow.json index c7a35cebc..63c8daee9 100644 --- a/config/nodered/config-sil-two-evse-flow.json +++ b/config/nodered/config-sil-two-evse-flow.json @@ -1356,7 +1356,7 @@ "type": "function", "z": "e921db8897354328", "name": "Swipe token", - "func": "if (msg.topic.indexOf('id_token') > -1) flow.set('id_token', msg.payload);\nif (msg.topic.indexOf('token_type') > -1) flow.set('token_type', msg.payload);\nif (msg.topic.indexOf('prevalidated') > -1) flow.set('prevalidated', msg.payload);\nif (msg.topic.indexOf('connectors') > -1) flow.set('connectors', msg.payload);\nif (msg.topic.indexOf('complete') > -1) {\n msg.payload = {\n 'id_token': flow.get('id_token'),\n 'type': flow.get('token_type'),\n 'prevalidated': flow.get('prevalidated'),\n 'connectors': [flow.get('connectors')]\n };\n return msg;\n}\n", + "func": "if (msg.topic.indexOf('id_token') > -1) flow.set('id_token', msg.payload);\nif (msg.topic.indexOf('token_type') > -1) flow.set('token_type', msg.payload);\nif (msg.topic.indexOf('prevalidated') > -1) flow.set('prevalidated', msg.payload);\nif (msg.topic.indexOf('connectors') > -1) flow.set('connectors', msg.payload);\nif (msg.topic.indexOf('complete') > -1) {\n msg.payload = {\n 'id_token': flow.get('id_token'),\n 'authorization_type': flow.get('token_type'),\n 'prevalidated': flow.get('prevalidated'),\n 'connectors': [flow.get('connectors')]\n };\n return msg;\n}\n", "outputs": 1, "noerr": 0, "initialize": "",