Skip to content

Commit

Permalink
fix: remove console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Kabo committed Nov 3, 2023
1 parent 686e18b commit 52e4615
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions server/idapiProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ export const setOptions = ({
config: IdapiConfig;
}): IdapiFetchOptions => {
const hostname = `${subdomain}.${getBaseDomain()}`;
console.log('Using OAuth?', useOAuth);

const headers = {
...idapiOrOAuthHeaders({
config,
Expand All @@ -126,8 +124,6 @@ export const setOptions = ({
Referer: `https://manage.${getBaseDomain()}`,
};

console.log('HEADERS', headers);

const options = {
headers,
method,
Expand Down Expand Up @@ -203,10 +199,6 @@ export const idapiProxyHandler =
? req.body
: undefined,
});
if (response.ok) {
const json = await response.json();
console.log(json);
}
if (response.status === 204) {
return res.sendStatus(204);
} else {
Expand Down
1 change: 1 addition & 0 deletions server/routes/idapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { csrfValidateMiddleware } from '../util';

const router = Router();

// TODO: Replace this with withOAuth middleware from rk/oauth-migration
router.use(withIdentity(401));

router.get(
Expand Down

0 comments on commit 52e4615

Please sign in to comment.