We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e790b38 commit 5a14b7aCopy full SHA for 5a14b7a
templates/web/src/services/template.ts.twig
@@ -69,11 +69,19 @@ export class {{ service.name | caseUcfirst }} {
69
}
70
71
{%~ if method.type == 'location' or method.type == 'webAuth' %}
72
+ {%~ if method.auth|length > 0 %}
73
+ {%~ for node in method.auth %}
74
+ {%~ for key,header in node|keys %}
75
+ payload['{{header|caseLower}}'] = this.client.config.{{header|caseLower}};
76
+ {%~ endfor %}
77
78
+ {%~ endif %}
79
+
80
for (const [key, value] of Object.entries(Service.flatten(payload))) {
81
uri.searchParams.append(key, value);
82
83
84
{%~ endif %}
-
85
{%~ if method.type == 'webAuth' %}
86
if (typeof window !== 'undefined' && window?.location) {
87
window.location.href = uri.toString();
0 commit comments