mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge pull request #4278 from Ocelot-Social-Community/4258-lost-login
fix: JWT Expires In 2 Years
This commit is contained in:
commit
b1dec55449
@ -5,7 +5,7 @@ import CONFIG from './../config'
|
||||
export default function encode(user) {
|
||||
const { id, name, slug } = user
|
||||
const token = jwt.sign({ id, name, slug }, CONFIG.JWT_SECRET, {
|
||||
expiresIn: '1d',
|
||||
expiresIn: '2y',
|
||||
issuer: CONFIG.GRAPHQL_URI,
|
||||
audience: CONFIG.CLIENT_URI,
|
||||
subject: user.id.toString(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user