Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app-backend/src/controllers/auth.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { sendOTP } from '../utils/sendEmail.js';
import { ACTIONS } from "../middleware/logger.js";
import EOI from '../models/eoi.js';
import { GridFSBucket } from 'mongodb';

Check failure on line 9 in app-backend/src/controllers/auth.controller.js

View workflow job for this annotation

GitHub Actions / lint

'GridFSBucket' is defined but never used. Allowed unused vars must match /^_/u

import Guard from '../models/Guard.js'; // use the discriminator so license fields persist

Expand All @@ -15,7 +15,7 @@
return jwt.sign(
{ id: user._id, role: user.role },
process.env.JWT_SECRET,
{ expiresIn: '1h' }
{ expiresIn: '12h' }
);
};

Expand Down
Loading
Loading