mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
debug
This commit is contained in:
parent
dda57860cb
commit
7cbd374cf3
1 changed files with 3 additions and 2 deletions
|
|
@ -240,12 +240,13 @@ export const thumbnailHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
}
|
||||
let uid = ''
|
||||
try {
|
||||
const decoded = jwt.verify(token, process.env.JWT_SECRET) as {
|
||||
jwt.verify(token, process.env.JWT_SECRET)
|
||||
const decoded = jwt.decode(token) as {
|
||||
uid: string
|
||||
}
|
||||
uid = decoded.uid
|
||||
} catch (e) {
|
||||
console.debug('invalid token')
|
||||
console.debug('invalid token', e)
|
||||
return res.status(401).send('UNAUTHORIZED')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue