mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Merge 244a3f0ae698ce3a11cd11c38619b87cc03dacf6 into d6c46342693205f0dae441b45742d9c85d41cf33
This commit is contained in:
commit
c1fbe53520
@ -133,7 +133,7 @@ export class {{classname}} {
|
||||
{{/isBasicBearer}}
|
||||
{{#isOAuth}}
|
||||
|
||||
set accessToken(token: string) {
|
||||
set accessToken{{name}}(token: string) {
|
||||
this.authentications.{{name}}.accessToken = token;
|
||||
}
|
||||
{{/isOAuth}}
|
||||
|
@ -86,7 +86,7 @@ export class StoreApi {
|
||||
(this.authentications as any)[StoreApiApiKeys[key]].apiKey = value;
|
||||
}
|
||||
|
||||
set accessToken(token: string) {
|
||||
set accessTokenpetstore_auth(token: string) {
|
||||
this.authentications.petstore_auth.accessToken = token;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ export class UserApi {
|
||||
(this.authentications as any)[UserApiApiKeys[key]].apiKey = value;
|
||||
}
|
||||
|
||||
set accessToken(token: string) {
|
||||
set accessTokenpetstore_auth(token: string) {
|
||||
this.authentications.petstore_auth.accessToken = token;
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ export class PetApi {
|
||||
(this.authentications as any)[PetApiApiKeys[key]].apiKey = value;
|
||||
}
|
||||
|
||||
set accessToken(token: string) {
|
||||
set accessTokenpetstore_auth(token: string) {
|
||||
this.authentications.petstore_auth.accessToken = token;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ export class StoreApi {
|
||||
(this.authentications as any)[StoreApiApiKeys[key]].apiKey = value;
|
||||
}
|
||||
|
||||
set accessToken(token: string) {
|
||||
set accessTokenpetstore_auth(token: string) {
|
||||
this.authentications.petstore_auth.accessToken = token;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ export class UserApi {
|
||||
(this.authentications as any)[UserApiApiKeys[key]].apiKey = value;
|
||||
}
|
||||
|
||||
set accessToken(token: string) {
|
||||
set accessTokenpetstore_auth(token: string) {
|
||||
this.authentications.petstore_auth.accessToken = token;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user