How to use the @nestjs/jwt.JwtService function in @nestjs/jwt

To help you get started, we’ve selected a few @nestjs/jwt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vellengs / nestx / packages / server / dist / auth / auth.service.js View on Github external
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
github mpcast / mpcast-server / packages / core / dist / service / services / auth.service.js View on Github external
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
github vellengs / nestx-server / dist / auth / auth.service.js View on Github external
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

@nestjs/jwt

Nest - modern, fast, powerful node.js web framework (@jwt)

MIT
Latest version published 6 months ago

Package Health Score

88 / 100
Full package analysis

Similar packages