Skip to content

Commit 9dd5c00

Browse files
committed
A billion commits!
1 parent 2a14e6e commit 9dd5c00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/sockets/wsAuthorizer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const verifier = CognitoJwtVerifier.create({
1414
});
1515

1616
export const wsAuthorizer = async (event: WebSocketAuthorizerEvent) => {
17-
const token = event.identitySource?.[0];
17+
console.log("Authorizer event:", JSON.stringify(event));
18+
const token = event.identitySource?.[0];
1819
// // API Gateway normalizes header keys to lowercase
1920
// const token =
2021
// event.headers?.["sec-websocket-protocol"] ||

0 commit comments

Comments
 (0)