fix: critical issue in authCheck.js (c is not defined)