Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroHc committed Jul 27, 2023
1 parent f08eb93 commit 88d3410
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/base-service/auth-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AuthHelper {
isRequired = false,
defaultToEmptyStringForUser = false,
},
config,
config
) {
if (!userKey && !passKey) {
throw Error('Expected userKey or passKey to be set')
Expand Down Expand Up @@ -142,7 +142,7 @@ class AuthHelper {

withBasicAuth(requestParams) {
return this._withAnyAuth(requestParams, requestParams =>
this.constructor._mergeAuth(requestParams, this._basicAuth),
this.constructor._mergeAuth(requestParams, this._basicAuth)
)
}

Expand Down Expand Up @@ -183,13 +183,13 @@ class AuthHelper {

withBearerAuthHeader(
requestParams,
bearerKey = 'Bearer', // lgtm [js/hardcoded-credentials]
bearerKey = 'Bearer' // lgtm [js/hardcoded-credentials]
) {
return this._withAnyAuth(requestParams, requestParams =>
this.constructor._mergeHeaders(
requestParams,
this._bearerAuthHeader(bearerKey),
),
this._bearerAuthHeader(bearerKey)
)
)
}

Expand All @@ -215,7 +215,7 @@ class AuthHelper {
this.constructor._mergeQueryParams(requestParams, {
...(userKey ? { [userKey]: this._user } : undefined),
...(passKey ? { [passKey]: this._pass } : undefined),
}),
})
)
}
}
Expand Down

0 comments on commit 88d3410

Please sign in to comment.