- fix: refresh token, codice di errore ...

This commit is contained in:
Surya Paolo
2025-03-15 14:52:33 +01:00
parent 7d845355a9
commit a03c4cf613
5 changed files with 9 additions and 6 deletions

View File

@@ -753,7 +753,10 @@ UserSchema.statics.findByToken = async function (token, typeaccess, con_auth, wi
const start = process.hrtime.bigint();
const start_jwt = process.hrtime.bigint();
if (!token) return { user, code };
if (!token) {
console.warn('TOKEN VUOTO ! ');
return { user, code };
}
try {