From 6ab626fc0dcb4ce62345c9ee967ba300474728e2 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 6 Feb 2021 09:20:07 +0100 Subject: :sparkles: convertBigIntToString --- src/util/checkToken.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/checkToken.ts') diff --git a/src/util/checkToken.ts b/src/util/checkToken.ts index 96c7806a..b4635126 100644 --- a/src/util/checkToken.ts +++ b/src/util/checkToken.ts @@ -2,7 +2,7 @@ import { JWTOptions } from "./Constants"; import jwt from "jsonwebtoken"; import Config from "./Config"; -export function checkToken(token: string) { +export function checkToken(token: string): Promise { return new Promise((res, rej) => { jwt.verify(token, Config.getAll().api.security.jwtSecret, JWTOptions, (err, decoded: any) => { if (err || !decoded) return rej("Invalid Token"); -- cgit 1.5.1