- fix: refresh token, codice di errore ...
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user