@next-nest-auth/nestauth
Version:
NestAuth is an authentication solution for NestJS applications, designed to handle user login, session management, and token-based authentication (JWT). It integrates seamlessly with Next.js and other frontends to provide a unified authentication system,
20 lines • 1.12 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createLocalGuard = createLocalGuard;
const common_1 = require("@nestjs/common");
const passport_1 = require("@nestjs/passport");
function createLocalGuard(strategyName) {
let NestAuthLocalGuard = class NestAuthLocalGuard extends (0, passport_1.AuthGuard)(strategyName) {
};
NestAuthLocalGuard = __decorate([
(0, common_1.Injectable)()
], NestAuthLocalGuard);
return NestAuthLocalGuard;
}
//# sourceMappingURL=nestauth-local.guard.js.map