forked from loafle/openapi-generator-original
[typescript-fetch] fix access token type (#3323)
This commit is contained in:
parent
2fbf0f33b3
commit
81e073df2c
@ -113,8 +113,8 @@ export class {{classname}} extends runtime.BaseAPI {
|
|||||||
}
|
}
|
||||||
{{/isBasicBasic}}
|
{{/isBasicBasic}}
|
||||||
{{#isBasicBearer}}
|
{{#isBasicBearer}}
|
||||||
if (this.configuration && (this.configuration.accessToken || this.configuration.apiKey)) {
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
const token = this.configuration.accessToken || this.configuration.apiKey;
|
const token = this.configuration.accessToken;
|
||||||
const tokenString = typeof token === 'function' ? token("{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}]) : token;
|
const tokenString = typeof token === 'function' ? token("{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}]) : token;
|
||||||
|
|
||||||
if (tokenString) {
|
if (tokenString) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user