mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03: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();
|
||
|
|
};
|