Skip to content

Commit

Permalink
Verified and recent, now auth_date fix in LA
Browse files Browse the repository at this point in the history
  • Loading branch information
awisniew207 committed Sep 6, 2024
1 parent b2874f1 commit c15ddda
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/litAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit c15ddda

Please sign in to comment.