Skip to content

Commit 359cef7

Browse files
authored
fixed error with expired token test
1 parent 3254e35 commit 359cef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test-auth.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ describe('Auth endpoints', function () {
172172
firstName,
173173
lastName
174174
},
175+
exp: Math.floor(Date.now() / 1000) - 10 // Expired ten seconds ago
175176
},
176177
JWT_SECRET,
177178
{
178179
algorithm: 'HS256',
179-
subject: username,
180-
expiresIn: Math.floor(Date.now() / 1000) - 10 // Expired ten seconds ago
180+
subject: username
181181
}
182182
);
183183

0 commit comments

Comments
 (0)