We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc5821 commit 0c1cdbeCopy full SHA for 0c1cdbe
src/apphandler.js
@@ -78,7 +78,8 @@ export class AppHandler {
78
context: oldtoken.context,
79
maxrenew: oldtoken.maxrenew - 1
80
}
81
- if (!oldtoken.maxrenew || !(oldtoken.maxrenew > 0)) return {}
+ if (!oldtoken.maxrenew || !(oldtoken.maxrenew > 0))
82
+ return res.status(401).send('maximum renewal exceeded')
83
res.status(200).json({ token: await this.signServerJwt(newtoken) })
84
})
85
0 commit comments