Skip to content

Commit a552ba5

Browse files
authored
Update authEndPoint.js
Fix identity instance detection; without it unauthorized users can access the API
1 parent 589191c commit a552ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lambda/authEndPoint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import fetch from 'node-fetch';
55
export async function handler(event, context) {
6-
if (!context.clientContext && !context.clientContext.identity) {
6+
if (!context.clientContext || !context.clientContext.identity) {
77
return {
88
statusCode: 500,
99
body: JSON.stringify({

0 commit comments

Comments
 (0)