mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 21:29:43 +02:00
8 lines
199 B
JavaScript
8 lines
199 B
JavaScript
|
module.exports = async function isAuthenticated(req, res, proceed) {
|
||
|
if (!req.currentUser) {
|
||
|
return res.unauthorized('Access token is missing, invalid or expired');
|
||
|
}
|
||
|
|
||
|
return proceed();
|
||
|
};
|