diff --git a/packages/pds/src/pipethrough.ts b/packages/pds/src/pipethrough.ts index 855fb438202..5a85d62b3e0 100644 --- a/packages/pds/src/pipethrough.ts +++ b/packages/pds/src/pipethrough.ts @@ -21,7 +21,7 @@ export const proxyHandler = (ctx: AppContext): CatchallHandler => { return async (req, res, next) => { try { const { url, aud, nsid } = await formatUrlAndAud(ctx, req) - const auth = await accessStandard({ req }) + const auth = await accessStandard({ req, res }) if (!auth.credentials.isPrivileged && PRIVILEGED_METHODS.has(nsid)) { throw new InvalidRequestError('Bad token method', 'InvalidToken') }