mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
ignore expiration of jwt token for tts streaming
This commit is contained in:
parent
671aeda76f
commit
90fe5e8109
1 changed files with 3 additions and 2 deletions
|
|
@ -232,8 +232,9 @@ export const textToSpeechStreamingHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
|
||||
let claim: Claim
|
||||
try {
|
||||
jwt.verify(token, process.env.JWT_SECRET)
|
||||
claim = jwt.decode(token) as Claim
|
||||
claim = jwt.verify(token, process.env.JWT_SECRET, {
|
||||
ignoreExpiration: true,
|
||||
}) as Claim
|
||||
} catch (e) {
|
||||
console.error('Authentication error:', e)
|
||||
return res.status(401).send({ errorCode: 'UNAUTHENTICATED' })
|
||||
|
|
|
|||
Loading…
Reference in a new issue