File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/resources/handlebars/typescript-axios Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,21 +73,21 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur
73
73
}
74
74
{{/isKeyInQuery}}
75
75
{{/isApiKey}}
76
- {{#isBasicBasic }}
76
+ {{#isBasic }}
77
77
// http basic authentication required
78
78
if (configuration && (configuration.username || configuration.password)) {
79
79
localVarRequestOptions["auth"] = { username: configuration.username, password: configuration.password };
80
80
}
81
- {{/isBasicBasic }}
82
- {{#isBasicBearer }}
81
+ {{/isBasic }}
82
+ {{#isBearer }}
83
83
// http bearer authentication required
84
84
if (configuration && configuration.accessToken) {
85
85
const accessToken = typeof configuration.accessToken === 'function'
86
86
? await configuration.accessToken()
87
87
: await configuration.accessToken;
88
88
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
89
89
}
90
- {{/isBasicBearer }}
90
+ {{/isBearer }}
91
91
{{#isOAuth}}
92
92
// oauth required
93
93
if (configuration && configuration.accessToken) {
You can’t perform that action at this time.
0 commit comments