diff --git a/modules/swagger-codegen/src/main/resources/TypeScript-node/api.mustache b/modules/swagger-codegen/src/main/resources/TypeScript-node/api.mustache index c0b6fc0db6..6e7ef1c19f 100644 --- a/modules/swagger-codegen/src/main/resources/TypeScript-node/api.mustache +++ b/modules/swagger-codegen/src/main/resources/TypeScript-node/api.mustache @@ -108,7 +108,7 @@ export class {{classname}} { protected basePath = '{{basePath}}'; protected defaultHeaders : any = {}; - public authentications = { + protected authentications = { 'default': new VoidAuth(), {{#authMethods}} {{#isBasic}} diff --git a/samples/client/petstore/typescript-node/api.ts b/samples/client/petstore/typescript-node/api.ts index 9f5d4dc94d..630b2c03d1 100644 --- a/samples/client/petstore/typescript-node/api.ts +++ b/samples/client/petstore/typescript-node/api.ts @@ -188,7 +188,7 @@ export class PetApi { protected basePath = 'http://petstore.swagger.io/v2'; protected defaultHeaders : any = {}; - public authentications = { + protected authentications = { 'default': new VoidAuth(), 'petstore_auth': new OAuth(), 'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'), @@ -878,7 +878,7 @@ export class StoreApi { protected basePath = 'http://petstore.swagger.io/v2'; protected defaultHeaders : any = {}; - public authentications = { + protected authentications = { 'default': new VoidAuth(), 'petstore_auth': new OAuth(), 'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'), @@ -1260,7 +1260,7 @@ export class UserApi { protected basePath = 'http://petstore.swagger.io/v2'; protected defaultHeaders : any = {}; - public authentications = { + protected authentications = { 'default': new VoidAuth(), 'petstore_auth': new OAuth(), 'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'),