Skip to content

Commit

Permalink
refactor: remove trace output of auth creds
Browse files Browse the repository at this point in the history
  • Loading branch information
jwulf committed May 24, 2024
1 parent 1457277 commit f29da7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/admin/lib/AdminApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export class AdminApiClient {
body: JSON.stringify(createClusterRequest),
headers,
}
debug(req)
const rest = await this.rest
return rest.post('', req).json()
}
Expand Down
5 changes: 2 additions & 3 deletions src/modeler/lib/ModelerAPIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,13 @@ export class ModelerApiClient {

private async getHeaders() {
const token = await this.oAuthProvider.getToken('MODELER')
const auth = `Bearer ${token}`
const authorization = `Bearer ${token}`
const headers = {
'content-type': 'application/json',
authorization: auth,
authorization,
'user-agent': this.userAgentString,
accept: '*/*',
}
debug(auth)
return headers
}

Expand Down

0 comments on commit f29da7c

Please sign in to comment.