i think this is good enough?

i have no idea i just wanna get this over with
Monofile One Point Three Here We Come!
Code Cleanup Update #2 Soon ! Maybe
This commit is contained in:
May 2023-08-27 00:33:34 -07:00
parent 089def4ab5
commit 3cf1a251c7
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "monofile", "name": "monofile",
"version": "1.3.0-beta", "version": "1.3.0",
"description": "Discord-based file sharing", "description": "Discord-based file sharing",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View file

@ -437,7 +437,8 @@ authRoutes.get("/me", requiresAccount, (req,res) => {
res.send({ res.send({
...acc, ...acc,
sessionCount: auth.AuthTokens.filter(e => e.account == accId && e.expire > Date.now()).length, sessionCount: auth.AuthTokens.filter(e => e.account == accId && e.expire > Date.now()).length,
sessionExpires: auth.AuthTokens.find(e => e.token == req.cookies.auth)?.expire sessionExpires: auth.AuthTokens.find(e => e.token == req.cookies.auth)?.expire,
password: undefined
}) })
}) })