Skip to content

Commit

Permalink
Resolve lint error in server\jwtauth.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavik001 committed Dec 11, 2023
1 parent f95490b commit 822df1f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions server/jwtauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
* @licend
*/

// eslint-disable-next-line no-undef
(config = require("./configuration.js")),
// eslint-disable-next-line no-undef
(jsonwebtoken = require("jsonwebtoken"));
const config = require("./configuration.js");
// const jsonwebtoken = require("jsonwebtoken");
const { roleInBoard } = require("./jwtBoardnameAuth");
/**
* Validates jwt and returns whether user is a moderator
Expand All @@ -37,7 +35,6 @@ const { roleInBoard } = require("./jwtBoardnameAuth");
*/
function checkUserPermission(url) {
var isModerator = false;
// eslint-disable-next-line no-undef
if (config.AUTH_SECRET_KEY != "") {
var token = url.searchParams.get("token");
if (token) {
Expand Down

0 comments on commit 822df1f

Please sign in to comment.