mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
Merge pull request #30883 from overleaf/ii-domain-capture-url-expiry
[web] Add option to skip expiration checking when decoding JWT GitOrigin-RevId: bc81b9e0581286ac26b0c31f0cb48e743bca5f9c
This commit is contained in:
@@ -14,9 +14,11 @@ async function sign(payload, options = {}) {
|
||||
return token
|
||||
}
|
||||
|
||||
function getDecoded(token) {
|
||||
function getDecoded(token, options = {}) {
|
||||
const key = Settings.jwt.key
|
||||
const decoded = JWT.verify(token, key)
|
||||
const decoded = JWT.verify(token, key, {
|
||||
ignoreExpiration: options.ignoreExpiration,
|
||||
})
|
||||
return decoded
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user