Update smoke-tracker API documentation to reflect changes in JWT token expiration; modify auth.js to implement a permanent token without expiration.
This commit is contained in:
@@ -69,10 +69,8 @@ router.post(
|
||||
{
|
||||
...JSON.parse(JSON.stringify(user.userId)),
|
||||
},
|
||||
SMOKE_TRACKER_TOKEN_KEY,
|
||||
{
|
||||
expiresIn: '12h',
|
||||
}
|
||||
SMOKE_TRACKER_TOKEN_KEY
|
||||
// Для этого проекта токен делаем бессрочным (без поля expiresIn)
|
||||
)
|
||||
|
||||
res.json(
|
||||
|
||||
Reference in New Issue
Block a user