Skip to content

Commit 4695fb7

Browse files
ksvirkou-hubspotFornori
authored andcommitted
fix api key (OpenAPITools#9476)
1 parent 99770fa commit 4695fb7

File tree

1 file changed

+1
-1
lines changed
  • modules/openapi-generator/src/main/resources/typescript/auth

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/typescript/auth/auth.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class {{#lambda.pascalcase}}{{name}}{{/lambda.pascalcase}}Authentication
8585

8686
public {{#isBasicBearer}}async {{/isBasicBearer}}applySecurityAuthentication(context: RequestContext) {
8787
{{#isApiKey}}
88-
context.{{#isKeyInHeader}}setHeaderParam{{/isKeyInHeader}}{{#isKeyInQuery}}addCookie{{/isKeyInQuery}}{{#isKeyInCookie}}setQueryParam{{/isKeyInCookie}}("{{keyParamName}}", this.apiKey);
88+
context.{{#isKeyInHeader}}setHeaderParam{{/isKeyInHeader}}{{#isKeyInQuery}}setQueryParam{{/isKeyInQuery}}{{#isKeyInCookie}}addCookie{{/isKeyInCookie}}("{{keyParamName}}", this.apiKey);
8989
{{/isApiKey}}
9090
{{#isBasicBasic}}
9191
let comb = this.username + ":" + this.password;

0 commit comments

Comments
 (0)