UNPKG

@wristband/nestjs-auth

Version:

SDK for integrating your NestJS application with Wristband. Handles user authentication, session management, and token management.

25 lines (24 loc) 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SessionErrorCode = exports.SessionError = exports.WristbandExpressSessionModule = exports.WristbandExpressSessionMiddleware = void 0; /** * Session Module * * Importing this automatically augments Express.Request with the `session` property * because the middleware imports from @wristband/express-auth/session */ var session_middleware_1 = require("./session.middleware"); Object.defineProperty(exports, "WristbandExpressSessionMiddleware", { enumerable: true, get: function () { return session_middleware_1.WristbandExpressSessionMiddleware; } }); var session_module_1 = require("./session.module"); Object.defineProperty(exports, "WristbandExpressSessionModule", { enumerable: true, get: function () { return session_module_1.WristbandExpressSessionModule; } }); /** * Session error class exports * * ⚠️ WARNING: These are runtime value exports. Importing them will load the * @wristband/typescript-session module and trigger Express.Request augmentation. * * Only import these if you're using the Session Module/Middleware. */ var express_auth_1 = require("@wristband/express-auth"); Object.defineProperty(exports, "SessionError", { enumerable: true, get: function () { return express_auth_1.SessionError; } }); Object.defineProperty(exports, "SessionErrorCode", { enumerable: true, get: function () { return express_auth_1.SessionErrorCode; } });