summary refs log tree commit diff
path: root/src/middlewares/Authentication.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 18:02:10 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 18:02:10 +0200
commit70892870161edad2a44ae36bdf9092961ef830bb (patch)
tree4763c7099023784ac7c020ed1dde29223728fd14 /src/middlewares/Authentication.ts
parent:bug: fix body parser empty error object (diff)
downloadserver-70892870161edad2a44ae36bdf9092961ef830bb.tar.xz
:art: Convert id bigint to string
Diffstat (limited to 'src/middlewares/Authentication.ts')
-rw-r--r--src/middlewares/Authentication.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/middlewares/Authentication.ts b/src/middlewares/Authentication.ts

index 595bcf73..f2cd438c 100644 --- a/src/middlewares/Authentication.ts +++ b/src/middlewares/Authentication.ts
@@ -29,7 +29,7 @@ export async function Authentication(req: Request, res: Response, next: NextFunc const decoded: any = await checkToken(req.headers.authorization); req.token = decoded; - req.user_id = BigInt(decoded.id); + req.user_id = decoded.id; return next(); } catch (error) { return next(new HTTPError(error.toString(), 400));