remove duplicate require

This commit is contained in:
Girish Ramakrishnan
2023-06-04 18:23:26 +02:00
parent dc5342b9fc
commit 54682a1370
-2
View File
@@ -111,8 +111,6 @@ async function del(req, res, next) {
next(new HttpSuccess(204));
}
const tokens = require('../tokens.js');
async function dashboardLoginCallback(req, res, next) {
const [error, token] = await safe(tokens.add({ clientId: tokens.ID_WEBADMIN, identifier: req.user.id, expires: Date.now() + constants.DEFAULT_TOKEN_EXPIRATION_MSECS }));
if (error) return next(new HttpError(500, error));