@katalysttech/auth
Version:
A flexible authentication module for NestJS applications with JWT and refresh token support
9 lines • 335 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Auth = void 0;
const common_1 = require("@nestjs/common");
exports.Auth = (0, common_1.createParamDecorator)((data, ctx) => {
const request = ctx.switchToHttp().getRequest();
return request.user;
});
//# sourceMappingURL=auth.decorator.js.map