Skip to content

Commit b90dcd4

Browse files
committed
fix auth?
1 parent c6dad25 commit b90dcd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

user-service/controller/auth-controller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { formatUserResponse } from './user-controller.js';
55

66
export async function handleLogin(req, res) {
77
const { email, password } = req.body;
8+
89
if (email && password) {
910
try {
1011
const user = await _findUserByEmail(email);
@@ -23,7 +24,7 @@ export async function handleLogin(req, res) {
2324
},
2425
process.env.JWT_SECRET,
2526
{
26-
expiresIn: '1d',
27+
expiresIn: '5d',
2728
},
2829
);
2930
return res.status(200).json({

0 commit comments

Comments
 (0)