Skip to content

Commit

Permalink
[AXON-46] chore: clean up a bit of unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
sdzh-atlassian committed Feb 20, 2025
1 parent f0f2b38 commit b148985
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/atlclients/responseHandlers/JiraPKCEResponseHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Logger } from '../../logger';
import { ResponseHandler } from './ResponseHandler';
import { Strategy } from '../strategy';
import { Tokens } from '../tokens';
import { getProxyHostAndPort } from '@atlassianlabs/pi-client-common';

export class JiraPKCEResponseHandler extends ResponseHandler {
constructor(
Expand All @@ -18,13 +17,6 @@ export class JiraPKCEResponseHandler extends ResponseHandler {

async tokens(code: string): Promise<Tokens> {
try {
const [proxyHost, proxyPort] = getProxyHostAndPort();
if (proxyHost.trim() !== '') {
Logger.debug(`using proxy: ${proxyHost}:${proxyPort}`);
} else {
Logger.debug(`no proxy configured in environment`);
}

const tokenResponse = await this.axios(this.strategy.tokenUrl(), {
method: 'POST',
headers: {
Expand Down

0 comments on commit b148985

Please sign in to comment.