diff --git a/src/lambda/authEndPoint.js b/src/lambda/authEndPoint.js index 0e57a7d..c632d47 100644 --- a/src/lambda/authEndPoint.js +++ b/src/lambda/authEndPoint.js @@ -3,7 +3,7 @@ import fetch from 'node-fetch'; export async function handler(event, context) { - if (!context.clientContext && !context.clientContext.identity) { + if (!context.clientContext || !context.clientContext.identity) { return { statusCode: 500, body: JSON.stringify({