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' }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you increase the token expiry
@neethuchandhavarkar are you fine with this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I increased the token expiry for testing purposes, as it was not feasible to create multiple employers and guards, and log back in every hour from postman. We can revert it back now, no problem

);
};

Expand Down
Loading
Loading