Skip to content

Commit 0c1cdbe

Browse files
committed
Fix renewal message
1 parent fcc5821 commit 0c1cdbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apphandler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export class AppHandler {
7878
context: oldtoken.context,
7979
maxrenew: oldtoken.maxrenew - 1
8080
}
81-
if (!oldtoken.maxrenew || !(oldtoken.maxrenew > 0)) return {}
81+
if (!oldtoken.maxrenew || !(oldtoken.maxrenew > 0))
82+
return res.status(401).send('maximum renewal exceeded')
8283
res.status(200).json({ token: await this.signServerJwt(newtoken) })
8384
})
8485

0 commit comments

Comments
 (0)