We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2864a59 commit 09bb0c3Copy full SHA for 09bb0c3
src/index.ts
@@ -96,7 +96,8 @@ export class UtilsSvc {
96
): Promise<APIGatewayProxyResult> => {
97
try {
98
Sentry.configureScope(scope => {
99
- if (event.requestContext.authorizer) {
+ // make sure we check the `requestContext` as it is optional field CustomAuthorizerEvent
100
+ if (event.requestContext && event.requestContext.authorizer) {
101
const {
102
principalId: accountId,
103
userId,
0 commit comments