fix: update dependencies to latest

This commit is contained in:
Divlo
2023-01-11 18:02:38 +01:00
parent 12dcabccb3
commit e30a66eeb6
26 changed files with 749 additions and 12804 deletions

View File

@ -20,10 +20,10 @@ export const getUserWithBearerToken = async (
throw new Unauthorized()
}
const token = tokenSplitted[1]
const token = tokenSplitted[1] ?? 'token'
let payload: UserJWT
try {
payload = jwt.verify(token, JWT_ACCESS_SECRET) as UserJWT
payload = jwt.verify(token, JWT_ACCESS_SECRET) as unknown as UserJWT
} catch {
throw new Forbidden()
}