Server IP : 150.95.80.236 / Your IP : 18.222.117.15 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/api-uat.pcu.in.th/node_modules/@nestjs/jwt/dist/ |
Upload File : |
"use strict"; 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; }; var JwtModule_1; Object.defineProperty(exports, "__esModule", { value: true }); exports.JwtModule = void 0; const common_1 = require("@nestjs/common"); const jwt_constants_1 = require("./jwt.constants"); const jwt_providers_1 = require("./jwt.providers"); const jwt_service_1 = require("./jwt.service"); let JwtModule = JwtModule_1 = class JwtModule { static register(options) { return { module: JwtModule_1, global: options.global, providers: (0, jwt_providers_1.createJwtProvider)(options) }; } static registerAsync(options) { return { module: JwtModule_1, global: options.global, imports: options.imports || [], providers: [ ...this.createAsyncProviders(options), ...(options.extraProviders ?? []) ] }; } static createAsyncProviders(options) { if (options.useExisting || options.useFactory) { return [this.createAsyncOptionsProvider(options)]; } return [ this.createAsyncOptionsProvider(options), { provide: options.useClass, useClass: options.useClass } ]; } static createAsyncOptionsProvider(options) { if (options.useFactory) { return { provide: jwt_constants_1.JWT_MODULE_OPTIONS, useFactory: options.useFactory, inject: options.inject || [] }; } return { provide: jwt_constants_1.JWT_MODULE_OPTIONS, useFactory: async (optionsFactory) => await optionsFactory.createJwtOptions(), inject: [options.useExisting || options.useClass] }; } }; exports.JwtModule = JwtModule; exports.JwtModule = JwtModule = JwtModule_1 = __decorate([ (0, common_1.Module)({ providers: [jwt_service_1.JwtService], exports: [jwt_service_1.JwtService] }) ], JwtModule);