Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return {
ok: true,
};
});
}
validateUser(payload) {
return __awaiter(this, void 0, void 0, function* () {
return this.userService.findOne({
username: payload.account,
});
});
}
};
AuthService = __decorate([
common_1.Injectable(),
__metadata("design:paramtypes", [jwt_1.JwtService,
users_service_1.UsersService])
], AuthService);
exports.AuthService = AuthService;
//# sourceMappingURL=auth.service.js.map
identifier,
},
});
if (!user) {
throw new unauthorized_error_1.HttpUnauthorizedError();
}
const me = utils_1.formatOneMeta(user);
return user;
}
};
AuthService = __decorate([
common_1.Injectable(),
__param(0, typeorm_1.InjectConnection()),
__metadata("design:paramtypes", [typeorm_2.Connection,
password_ciper_1.PasswordCiper,
jwt_1.JwtService])
], AuthService);
exports.AuthService = AuthService;
//# sourceMappingURL=auth.service.js.map
return payload;
});
}
findOneByToken() {
return __awaiter(this, void 0, void 0, function* () {
});
}
validateUser(payload) {
return __awaiter(this, void 0, void 0, function* () {
return {};
});
}
};
AuthService = __decorate([
common_1.Injectable(),
__metadata("design:paramtypes", [jwt_1.JwtService])
], AuthService);
exports.AuthService = AuthService;
//# sourceMappingURL=auth.service.js.map