Skip to content

Commit

Permalink
include jwt import
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsraham committed Oct 21, 2024
1 parent dbc08c9 commit 7c4872a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const jwt = require("jsonwebtoken");
const fs = require("fs");
const express = require("express");
const dotenv = require("dotenv");
const fs = require("fs");
const path = require("path");
const { validate } = require("@telegram-apps/init-data-node");
const RateLimit = require("express-rate-limit");
Expand All @@ -26,7 +27,6 @@ app.use((req, res, next) => {
res.setHeader("Access-Control-Allow-Credentials", "true");
}

// Handle preflight requests (OPTIONS method)
if (req.method === "OPTIONS") {
res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With, Accept");
return res.sendStatus(204);
Expand Down

0 comments on commit 7c4872a

Please sign in to comment.