UNPKG

@gapi/auth

Version:

##### For questions/issues you can write ticket [here](http://gitlab.youvolio.com/Stradivario/gapi-auth/issues) ##### This module is intended to be used with [rxdi](https://github.com/rxdi/core) or [gapi](https://github.com/Stradivario/gapi)

44 lines (43 loc) 1.92 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); 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 __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; var AuthModule_1; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthModule = void 0; const core_1 = require("@rxdi/core"); const auth_config_1 = require("./auth.config"); const auth_service_1 = require("./auth.service"); let AuthModule = AuthModule_1 = class AuthModule { static forRoot(config) { return { module: AuthModule_1, services: [ auth_service_1.AuthInternalService, { provide: auth_config_1.AUTH_MODULE_CONFIG, useValue: config || {}, }, ], }; } }; AuthModule = AuthModule_1 = __decorate([ core_1.Module() ], AuthModule); exports.AuthModule = AuthModule; __exportStar(require("./auth.service"), exports); __exportStar(require("./auth.config"), exports);