mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
log unauthorized error
This commit is contained in:
parent
1b069c2696
commit
b60ace4877
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ export function userRouter() {
|
|||
try {
|
||||
claims = await getClaimsByToken(token)
|
||||
if (!claims) {
|
||||
logger.info('failed to authorize')
|
||||
return res.status(401).send('UNAUTHORIZED')
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue