Skip to content

Commit

Permalink
additional temp logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Jan 31, 2024
1 parent b72ae48 commit 8f46672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/app-api/src/handlers/third_party_API_authorizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export const main: APIGatewayTokenAuthorizerHandler = async (
const authToken = event.authorizationToken.replace('Bearer ', '')
const parsedEvent = JSON.parse(JSON.stringify(event))
const host = parsedEvent.headers.Host
console.info(host, '========= host ========')
console.info(parsedEvent, '========= host ========')
console.info(event, '========= host ========')
// host is formatted as ipAddress:port
// the following will remove the :port to leave just the ip address
const ipAddress = host?.slice(0, host.indexOf(':'))
Expand Down

0 comments on commit 8f46672

Please sign in to comment.