We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fb84c5 commit ee50fc8Copy full SHA for ee50fc8
templates/javascript/clients/api-single.mustache
@@ -81,7 +81,7 @@ export function create{{#lambda.titlecase}}{{apiName}}{{/lambda.titlecase}}({
81
* @param params.apiKey - The new API Key to use.
82
*/
83
setClientApiKey({ apiKey }: { apiKey: string }): void {
84
- if (!authMode || authMode == 'WithinHeaders') {
+ if (!authMode || authMode === 'WithinHeaders') {
85
this.transporter.baseHeaders['x-algolia-api-key'] = apiKey;
86
} else {
87
this.transporter.baseQueryParameters['x-algolia-api-key'] = apiKey;
0 commit comments