mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Extend expiration of the jwt token to 1 year
This commit is contained in:
parent
f56de45ed0
commit
69d6b60adc
2 changed files with 4 additions and 4 deletions
|
|
@ -64,6 +64,6 @@ export const signFeatureToken = (feature: Feature): string => {
|
|||
grantedAt: feature.grantedAt ? feature.grantedAt.getTime() / 1000 : null,
|
||||
},
|
||||
env.server.jwtSecret,
|
||||
{ expiresIn: '1d' }
|
||||
{ expiresIn: '1y' }
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ describe('features resolvers', () => {
|
|||
grantedAt: Date.now() / 1000,
|
||||
},
|
||||
env.server.jwtSecret,
|
||||
{ expiresIn: '1d' }
|
||||
{ expiresIn: '1y' }
|
||||
)
|
||||
|
||||
expect(res.body.data.optInFeature).to.eql({
|
||||
|
|
@ -144,7 +144,7 @@ describe('features resolvers', () => {
|
|||
grantedAt: null,
|
||||
},
|
||||
env.server.jwtSecret,
|
||||
{ expiresIn: '1d' }
|
||||
{ expiresIn: '1y' }
|
||||
)
|
||||
|
||||
expect(res.body.data.optInFeature).to.eql({
|
||||
|
|
@ -186,7 +186,7 @@ describe('features resolvers', () => {
|
|||
grantedAt: Date.now() / 1000,
|
||||
},
|
||||
env.server.jwtSecret,
|
||||
{ expiresIn: '1d' }
|
||||
{ expiresIn: '1y' }
|
||||
)
|
||||
|
||||
expect(res.body.data.optInFeature).to.eql({
|
||||
|
|
|
|||
Loading…
Reference in a new issue