1 files changed, 0 insertions, 13 deletions
diff --git a/src/checkToken.ts b/src/checkToken.ts
deleted file mode 100644
index 96c7806a..00000000
--- a/src/checkToken.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { JWTOptions } from "./Constants";
-import jwt from "jsonwebtoken";
-import Config from "./Config";
-
-export function checkToken(token: string) {
- return new Promise((res, rej) => {
- jwt.verify(token, Config.getAll().api.security.jwtSecret, JWTOptions, (err, decoded: any) => {
- if (err || !decoded) return rej("Invalid Token");
-
- return res(decoded);
- });
- });
-}
|