mirror of
https://github.com/caprover/caprover
synced 2025-10-30 10:07:01 +00:00
Updated deps
This commit is contained in:
@@ -281,19 +281,16 @@ class Authenticator {
|
||||
const self = this
|
||||
obj.namespace = self.namespace
|
||||
|
||||
return Promise.resolve().then(function () {
|
||||
return jwt.sign(
|
||||
{
|
||||
data: obj,
|
||||
},
|
||||
self.encryptionKey + (keySuffix ?? ''),
|
||||
expiresIn
|
||||
? {
|
||||
expiresIn: `${expiresIn || ''}`,
|
||||
}
|
||||
: undefined
|
||||
)
|
||||
})
|
||||
return Promise.resolve() //
|
||||
.then(function () {
|
||||
return jwt.sign(
|
||||
{
|
||||
data: obj,
|
||||
},
|
||||
self.encryptionKey + (keySuffix ?? ''),
|
||||
expiresIn ? { expiresIn: expiresIn as any } : undefined
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
decodeGenericToken(token: string, keySuffix: string) {
|
||||
|
||||
Reference in New Issue
Block a user