Skip to content

Commit 905b0d6

Browse files
Mohammed AbdiMohammed Abdi
authored andcommitted
edit spelling
Signed-off-by: Mohammed Abdi <[email protected]>
1 parent 945416f commit 905b0d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/routes/api/dev-impersonate/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { KubeFastifyInstance } from '../../../types';
66
import {
77
DEV_IMPERSONATE_PASSWORD,
88
DEV_IMPERSONATE_USER,
9-
DEV_IMPERSONATE_TOKEN, // Temporary work around: get impersonate to work through token, becuase of hostname resolve problem and IBM not using oauth proxy
9+
DEV_IMPERSONATE_TOKEN, // Temporary workaround: get impersonate to work through a token, because of hostname resolve the problem and IBM not using OAuth proxy
1010
} from '../../../utils/constants';
1111
import { createCustomError } from '../../../utils/requestUtils';
1212
import { devRoute } from '../../../utils/route-security';
@@ -16,7 +16,7 @@ export default async (fastify: KubeFastifyInstance): Promise<void> => {
1616
'/',
1717
devRoute(async (request: FastifyRequest<{ Body: { impersonate: boolean } }>) => {
1818
return new Promise<{ code: number; response: string }>((resolve, reject) => {
19-
// Temporary work around: get impersonate to work through token, becuase of hostname resolve problem and IBM not using oauth proxy
19+
// Temporary workaround: get impersonate to work through a token, because of hostname resolve the problem and IBM not using OAuth proxy
2020
if (DEV_IMPERSONATE_TOKEN) {
2121
setImpersonateAccessToken(DEV_IMPERSONATE_TOKEN);
2222
resolve({ code: 200, response: DEV_IMPERSONATE_TOKEN });

backend/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const DEV_MODE = process.env.APP_ENV === 'development';
1010
/** Allows a username to be impersonated in place of the logged in user for testing purposes -- impacts only some API */
1111
export const DEV_IMPERSONATE_USER = DEV_MODE ? process.env.DEV_IMPERSONATE_USER : undefined;
1212
export const DEV_IMPERSONATE_PASSWORD = DEV_MODE ? process.env.DEV_IMPERSONATE_PASSWORD : undefined;
13-
export const DEV_IMPERSONATE_TOKEN = DEV_MODE ? process.env.DEV_IMPERSONATE_TOKEN : undefined; // Temporary work around: get impersonate to work through token, becuase of hostname resolve problem and IBM not using oauth proxy
13+
export const DEV_IMPERSONATE_TOKEN = DEV_MODE ? process.env.DEV_IMPERSONATE_TOKEN : undefined; // Temporary workaround: get impersonate to work through a token, because of hostname resolve the problem and IBM not using OAuth proxy
1414
export const APP_ENV = process.env.APP_ENV;
1515

1616
export const USER_ACCESS_TOKEN = 'x-forwarded-access-token';

0 commit comments

Comments
 (0)