mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 09:15:09 +03:00
@@ -5,6 +5,7 @@
|
||||
|
||||
module.exports = async function isAuthenticated(req, res, proceed) {
|
||||
if (!req.currentUser) {
|
||||
// TODO: provide separate error for API keys?
|
||||
return res.unauthorized('Access token is missing, invalid or expired');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user