From c15ddda0cd8e59a678691d2b3e994e23846e1344 Mon Sep 17 00:00:00 2001 From: awisniew207 Date: Fri, 6 Sep 2024 13:30:06 -0700 Subject: [PATCH] Verified and recent, now auth_date fix in LA --- src/litAction.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/litAction.ts b/src/litAction.ts index e824e56..7974611 100644 --- a/src/litAction.ts +++ b/src/litAction.ts @@ -65,11 +65,7 @@ const _litActionCode = async () => { console.log("Past validation"); - const userParam = urlParams.get('user'); - const userData = JSON.parse(decodeURIComponent(userParam!)); - const id = userData.id; - const auth_date = Number(userData.auth_date); - + const auth_date = Number(urlParams.get('auth_date')); const isRecent = Date.now() / 1000 - auth_date < 600; if (!isRecent) { return Lit.Actions.setResponse({