Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Invalid access key check
Browse files Browse the repository at this point in the history
  • Loading branch information
SomajitDey committed Sep 26, 2024
1 parent e0c0c86 commit 8032a70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const fetchChatID = async () => {
async function config() {
const uuid = document.getElementById("uuid").value;
const response = await fetch(`https://securelay.vercel.app/keys/${uuid}`);
if (!response.ok) {alert('Invalid EasyForm Access Key!'); return;}
const respJson = await response.json();
const pubKey = respJson.public; console.log('Public key = ' + pubKey);
const getFrom = 'https://securelay.vercel.app/private/' + uuid;
Expand Down

0 comments on commit 8032a70

Please sign in to comment.