social-auth-unifier 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +98 -0
  2. package/dist/facebook/facebook-oauth.controller.d.ts +5 -0
  3. package/dist/facebook/facebook-oauth.controller.js +46 -0
  4. package/dist/facebook/facebook-oauth.controller.js.map +1 -0
  5. package/dist/facebook/facebook-oauth.strategy.d.ts +8 -0
  6. package/dist/facebook/facebook-oauth.strategy.js +48 -0
  7. package/dist/facebook/facebook-oauth.strategy.js.map +1 -0
  8. package/dist/github/github-oauth.controller.d.ts +5 -0
  9. package/dist/github/github-oauth.controller.js +46 -0
  10. package/dist/github/github-oauth.controller.js.map +1 -0
  11. package/dist/github/github-oauth.strategy.d.ts +8 -0
  12. package/dist/github/github-oauth.strategy.js +47 -0
  13. package/dist/github/github-oauth.strategy.js.map +1 -0
  14. package/dist/google/google-oauth.controller.d.ts +5 -0
  15. package/dist/google/google-oauth.controller.js +46 -0
  16. package/dist/google/google-oauth.controller.js.map +1 -0
  17. package/dist/google/google-oauth.strategy.d.ts +8 -0
  18. package/dist/google/google-oauth.strategy.js +47 -0
  19. package/dist/google/google-oauth.strategy.js.map +1 -0
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.js +25 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/interfaces/facebook-oauth-options.interface.d.ts +15 -0
  24. package/dist/interfaces/facebook-oauth-options.interface.js +3 -0
  25. package/dist/interfaces/facebook-oauth-options.interface.js.map +1 -0
  26. package/dist/interfaces/github-oauth-options.interface.d.ts +15 -0
  27. package/dist/interfaces/github-oauth-options.interface.js +3 -0
  28. package/dist/interfaces/github-oauth-options.interface.js.map +1 -0
  29. package/dist/interfaces/google-oauth-options.interface.d.ts +15 -0
  30. package/dist/interfaces/google-oauth-options.interface.js +3 -0
  31. package/dist/interfaces/google-oauth-options.interface.js.map +1 -0
  32. package/dist/interfaces/linkedin-oauth-options.interface.d.ts +15 -0
  33. package/dist/interfaces/linkedin-oauth-options.interface.js +3 -0
  34. package/dist/interfaces/linkedin-oauth-options.interface.js.map +1 -0
  35. package/dist/interfaces/twitter-oauth-options.interface.d.ts +15 -0
  36. package/dist/interfaces/twitter-oauth-options.interface.js +3 -0
  37. package/dist/interfaces/twitter-oauth-options.interface.js.map +1 -0
  38. package/dist/linkedin/linkedin-oauth.controller.d.ts +5 -0
  39. package/dist/linkedin/linkedin-oauth.controller.js +46 -0
  40. package/dist/linkedin/linkedin-oauth.controller.js.map +1 -0
  41. package/dist/linkedin/linkedin-oauth.strategy.d.ts +8 -0
  42. package/dist/linkedin/linkedin-oauth.strategy.js +47 -0
  43. package/dist/linkedin/linkedin-oauth.strategy.js.map +1 -0
  44. package/dist/session.serializer.d.ts +5 -0
  45. package/dist/session.serializer.js +24 -0
  46. package/dist/session.serializer.js.map +1 -0
  47. package/dist/social-auth.module.d.ts +5 -0
  48. package/dist/social-auth.module.js +136 -0
  49. package/dist/social-auth.module.js.map +1 -0
  50. package/dist/tsconfig.tsbuildinfo +1 -0
  51. package/dist/twitter/twitter-oauth.controller.d.ts +5 -0
  52. package/dist/twitter/twitter-oauth.controller.js +46 -0
  53. package/dist/twitter/twitter-oauth.controller.js.map +1 -0
  54. package/dist/twitter/twitter-oauth.strategy.d.ts +8 -0
  55. package/dist/twitter/twitter-oauth.strategy.js +48 -0
  56. package/dist/twitter/twitter-oauth.strategy.js.map +1 -0
  57. package/package.json +54 -0
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.LinkedinOauthController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const passport_1 = require("@nestjs/passport");
18
+ let LinkedinOauthController = class LinkedinOauthController {
19
+ async linkedinAuth(_req) {
20
+ }
21
+ async linkedinAuthRedirect(req, res) {
22
+ res.json(req.user);
23
+ }
24
+ };
25
+ exports.LinkedinOauthController = LinkedinOauthController;
26
+ __decorate([
27
+ (0, common_1.Get)(),
28
+ (0, common_1.UseGuards)((0, passport_1.AuthGuard)('linkedin')),
29
+ __param(0, (0, common_1.Req)()),
30
+ __metadata("design:type", Function),
31
+ __metadata("design:paramtypes", [Object]),
32
+ __metadata("design:returntype", Promise)
33
+ ], LinkedinOauthController.prototype, "linkedinAuth", null);
34
+ __decorate([
35
+ (0, common_1.Get)('redirect'),
36
+ (0, common_1.UseGuards)((0, passport_1.AuthGuard)('linkedin')),
37
+ __param(0, (0, common_1.Req)()),
38
+ __param(1, (0, common_1.Res)()),
39
+ __metadata("design:type", Function),
40
+ __metadata("design:paramtypes", [Object, Object]),
41
+ __metadata("design:returntype", Promise)
42
+ ], LinkedinOauthController.prototype, "linkedinAuthRedirect", null);
43
+ exports.LinkedinOauthController = LinkedinOauthController = __decorate([
44
+ (0, common_1.Controller)('auth/linkedin')
45
+ ], LinkedinOauthController);
46
+ //# sourceMappingURL=linkedin-oauth.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedin-oauth.controller.js","sourceRoot":"","sources":["../../src/linkedin/linkedin-oauth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAsE;AAEtE,+CAA6C;AAGtC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAG1B,AAAN,KAAK,CAAC,YAAY,CAAQ,IAAS;IAEnC,CAAC;IAIK,AAAN,KAAK,CAAC,oBAAoB,CAAQ,GAAY,EAAS,GAAa;QAChE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACJ,CAAA;AAZY,0DAAuB;AAG1B;IAFL,IAAA,YAAG,GAAE;IACL,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,UAAU,CAAC,CAAC;IACb,WAAA,IAAA,YAAG,GAAE,CAAA;;;;2DAExB;AAIK;IAFL,IAAA,YAAG,EAAC,UAAU,CAAC;IACf,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,UAAU,CAAC,CAAC;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;IAAgB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;mEAErD;kCAXQ,uBAAuB;IADnC,IAAA,mBAAU,EAAC,eAAe,CAAC;GACf,uBAAuB,CAYnC"}
@@ -0,0 +1,8 @@
1
+ import { Strategy } from 'passport-linkedin-oauth2';
2
+ import { LinkedinOauthOptions } from '../interfaces/linkedin-oauth-options.interface';
3
+ declare const LinkedinOauthStrategy_base: new (...args: any[]) => Strategy;
4
+ export declare class LinkedinOauthStrategy extends LinkedinOauthStrategy_base {
5
+ constructor(options: LinkedinOauthOptions);
6
+ validate(accessToken: string, refreshToken: string, profile: any, done: (err: any, user: any, info?: any) => void): Promise<any>;
7
+ }
8
+ export {};
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.LinkedinOauthStrategy = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const passport_1 = require("@nestjs/passport");
18
+ const passport_linkedin_oauth2_1 = require("passport-linkedin-oauth2");
19
+ let LinkedinOauthStrategy = class LinkedinOauthStrategy extends (0, passport_1.PassportStrategy)(passport_linkedin_oauth2_1.Strategy, 'linkedin') {
20
+ constructor(options) {
21
+ super({
22
+ clientID: options.clientId,
23
+ clientSecret: options.clientSecret,
24
+ callbackURL: options.callbackUrl,
25
+ scope: ['r_emailaddress', 'r_liteprofile'],
26
+ });
27
+ }
28
+ async validate(accessToken, refreshToken, profile, done) {
29
+ const { name, emails, photos } = profile;
30
+ const user = {
31
+ email: emails ? emails[0].value : null,
32
+ firstName: name.givenName,
33
+ lastName: name.familyName,
34
+ picture: photos ? photos[0].value : null,
35
+ accessToken,
36
+ profile,
37
+ };
38
+ done(null, user);
39
+ }
40
+ };
41
+ exports.LinkedinOauthStrategy = LinkedinOauthStrategy;
42
+ exports.LinkedinOauthStrategy = LinkedinOauthStrategy = __decorate([
43
+ (0, common_1.Injectable)(),
44
+ __param(0, (0, common_1.Inject)('LINKEDIN_OAUTH_OPTIONS')),
45
+ __metadata("design:paramtypes", [Object])
46
+ ], LinkedinOauthStrategy);
47
+ //# sourceMappingURL=linkedin-oauth.strategy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedin-oauth.strategy.js","sourceRoot":"","sources":["../../src/linkedin/linkedin-oauth.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,+CAAoD;AACpD,uEAAoD;AAI7C,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,IAAA,2BAAgB,EAAC,mCAAQ,EAAE,UAAU,CAAC;IAC7E,YACsC,OAA6B;QAE/D,KAAK,CAAC;YACF,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,KAAK,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC;SAC7C,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,QAAQ,CACV,WAAmB,EACnB,YAAoB,EACpB,OAAY,EACZ,IAA+C;QAE/C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QACzC,MAAM,IAAI,GAAG;YACT,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;YACtC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,UAAU;YACzB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;YACxC,WAAW;YACX,OAAO;SACV,CAAC;QAEF,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrB,CAAC;CACJ,CAAA;AA9BY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,eAAM,EAAC,wBAAwB,CAAC,CAAA;;GAF5B,qBAAqB,CA8BjC"}
@@ -0,0 +1,5 @@
1
+ import { PassportSerializer } from '@nestjs/passport';
2
+ export declare class SessionSerializer extends PassportSerializer {
3
+ serializeUser(user: any, done: (err: Error, user: any) => void): any;
4
+ deserializeUser(payload: any, done: (err: Error, payload: string) => void): any;
5
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SessionSerializer = void 0;
10
+ const passport_1 = require("@nestjs/passport");
11
+ const common_1 = require("@nestjs/common");
12
+ let SessionSerializer = class SessionSerializer extends passport_1.PassportSerializer {
13
+ serializeUser(user, done) {
14
+ done(null, user);
15
+ }
16
+ deserializeUser(payload, done) {
17
+ done(null, payload);
18
+ }
19
+ };
20
+ exports.SessionSerializer = SessionSerializer;
21
+ exports.SessionSerializer = SessionSerializer = __decorate([
22
+ (0, common_1.Injectable)()
23
+ ], SessionSerializer);
24
+ //# sourceMappingURL=session.serializer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.serializer.js","sourceRoot":"","sources":["../src/session.serializer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAsD;AACtD,2CAA4C;AAGrC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,6BAAkB;IACrD,aAAa,CAAC,IAAS,EAAE,IAAqC;QAC1D,IAAI,CAAC,IAAW,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;IACD,eAAe,CAAC,OAAY,EAAE,IAA2C;QACrE,IAAI,CAAC,IAAW,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAPY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CAO7B"}
@@ -0,0 +1,5 @@
1
+ import { DynamicModule } from '@nestjs/common';
2
+ export declare class SocialAuthModule {
3
+ private static readonly logger;
4
+ static register(): DynamicModule;
5
+ }
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var SocialAuthModule_1;
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.SocialAuthModule = void 0;
11
+ const common_1 = require("@nestjs/common");
12
+ const passport_1 = require("@nestjs/passport");
13
+ const axios_1 = require("@nestjs/axios");
14
+ const config_1 = require("@nestjs/config");
15
+ const session_serializer_1 = require("./session.serializer");
16
+ const google_oauth_strategy_1 = require("./google/google-oauth.strategy");
17
+ const google_oauth_controller_1 = require("./google/google-oauth.controller");
18
+ const twitter_oauth_strategy_1 = require("./twitter/twitter-oauth.strategy");
19
+ const twitter_oauth_controller_1 = require("./twitter/twitter-oauth.controller");
20
+ const facebook_oauth_strategy_1 = require("./facebook/facebook-oauth.strategy");
21
+ const facebook_oauth_controller_1 = require("./facebook/facebook-oauth.controller");
22
+ const linkedin_oauth_strategy_1 = require("./linkedin/linkedin-oauth.strategy");
23
+ const linkedin_oauth_controller_1 = require("./linkedin/linkedin-oauth.controller");
24
+ const github_oauth_strategy_1 = require("./github/github-oauth.strategy");
25
+ const github_oauth_controller_1 = require("./github/github-oauth.controller");
26
+ let SocialAuthModule = SocialAuthModule_1 = class SocialAuthModule {
27
+ static register() {
28
+ const providers = [session_serializer_1.SessionSerializer];
29
+ const controllers = [];
30
+ const imports = [
31
+ passport_1.PassportModule.register({ session: true }),
32
+ axios_1.HttpModule,
33
+ config_1.ConfigModule.forRoot(),
34
+ ];
35
+ const config = new config_1.ConfigService();
36
+ if (process.env.GOOGLE_AUTH === 'true') {
37
+ const clientId = process.env.GOOGLE_CLIENT_ID;
38
+ const clientSecret = process.env.GOOGLE_CLIENT_SECRET;
39
+ const callbackUrl = process.env.GOOGLE_CALLBACK_URL;
40
+ if (clientId && clientSecret && callbackUrl) {
41
+ this.logger.log('Google Auth Enabled');
42
+ providers.push(google_oauth_strategy_1.GoogleOauthStrategy);
43
+ controllers.push(google_oauth_controller_1.GoogleOauthController);
44
+ providers.push({
45
+ provide: 'GOOGLE_OAUTH_OPTIONS',
46
+ useValue: { clientId, clientSecret, callbackUrl },
47
+ });
48
+ }
49
+ else {
50
+ this.logger.warn('Google Auth enabled but missing configuration. Skipping.');
51
+ }
52
+ }
53
+ if (process.env.TWITTER_AUTH === 'true') {
54
+ const clientId = process.env.TWITTER_CLIENT_ID;
55
+ const clientSecret = process.env.TWITTER_CLIENT_SECRET;
56
+ const callbackUrl = process.env.TWITTER_CALLBACK_URL;
57
+ if (clientId && clientSecret && callbackUrl) {
58
+ this.logger.log('Twitter Auth Enabled');
59
+ providers.push(twitter_oauth_strategy_1.TwitterOauthStrategy);
60
+ controllers.push(twitter_oauth_controller_1.TwitterOauthController);
61
+ providers.push({
62
+ provide: 'TWITTER_OAUTH_OPTIONS',
63
+ useValue: { clientId, clientSecret, callbackUrl },
64
+ });
65
+ }
66
+ else {
67
+ this.logger.warn('Twitter Auth enabled but missing configuration. Skipping.');
68
+ }
69
+ }
70
+ if (process.env.FACEBOOK_AUTH === 'true') {
71
+ const clientId = process.env.FACEBOOK_CLIENT_ID;
72
+ const clientSecret = process.env.FACEBOOK_CLIENT_SECRET;
73
+ const callbackUrl = process.env.FACEBOOK_CALLBACK_URL;
74
+ if (clientId && clientSecret && callbackUrl) {
75
+ this.logger.log('Facebook Auth Enabled');
76
+ providers.push(facebook_oauth_strategy_1.FacebookOauthStrategy);
77
+ controllers.push(facebook_oauth_controller_1.FacebookOauthController);
78
+ providers.push({
79
+ provide: 'FACEBOOK_OAUTH_OPTIONS',
80
+ useValue: { clientId, clientSecret, callbackUrl },
81
+ });
82
+ }
83
+ else {
84
+ this.logger.warn('Facebook Auth enabled but missing configuration. Skipping.');
85
+ }
86
+ }
87
+ if (process.env.LINKEDIN_AUTH === 'true') {
88
+ const clientId = process.env.LINKEDIN_CLIENT_ID;
89
+ const clientSecret = process.env.LINKEDIN_CLIENT_SECRET;
90
+ const callbackUrl = process.env.LINKEDIN_CALLBACK_URL;
91
+ if (clientId && clientSecret && callbackUrl) {
92
+ this.logger.log('LinkedIn Auth Enabled');
93
+ providers.push(linkedin_oauth_strategy_1.LinkedinOauthStrategy);
94
+ controllers.push(linkedin_oauth_controller_1.LinkedinOauthController);
95
+ providers.push({
96
+ provide: 'LINKEDIN_OAUTH_OPTIONS',
97
+ useValue: { clientId, clientSecret, callbackUrl },
98
+ });
99
+ }
100
+ else {
101
+ this.logger.warn('LinkedIn Auth enabled but missing configuration. Skipping.');
102
+ }
103
+ }
104
+ if (process.env.GITHUB_AUTH === 'true') {
105
+ const clientId = process.env.GITHUB_CLIENT_ID;
106
+ const clientSecret = process.env.GITHUB_CLIENT_SECRET;
107
+ const callbackUrl = process.env.GITHUB_CALLBACK_URL;
108
+ if (clientId && clientSecret && callbackUrl) {
109
+ this.logger.log('GitHub Auth Enabled');
110
+ providers.push(github_oauth_strategy_1.GithubOauthStrategy);
111
+ controllers.push(github_oauth_controller_1.GithubOauthController);
112
+ providers.push({
113
+ provide: 'GITHUB_OAUTH_OPTIONS',
114
+ useValue: { clientId, clientSecret, callbackUrl },
115
+ });
116
+ }
117
+ else {
118
+ this.logger.warn('GitHub Auth enabled but missing configuration. Skipping.');
119
+ }
120
+ }
121
+ return {
122
+ module: SocialAuthModule_1,
123
+ imports,
124
+ controllers,
125
+ providers,
126
+ exports: providers,
127
+ };
128
+ }
129
+ };
130
+ exports.SocialAuthModule = SocialAuthModule;
131
+ SocialAuthModule.logger = new common_1.Logger(SocialAuthModule_1.name);
132
+ exports.SocialAuthModule = SocialAuthModule = SocialAuthModule_1 = __decorate([
133
+ (0, common_1.Global)(),
134
+ (0, common_1.Module)({})
135
+ ], SocialAuthModule);
136
+ //# sourceMappingURL=social-auth.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-auth.module.js","sourceRoot":"","sources":["../src/social-auth.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuE;AACvE,+CAAkD;AAClD,yCAA2C;AAC3C,2CAA6D;AAC7D,6DAAyD;AAEzD,0EAAqE;AACrE,8EAAyE;AAEzE,6EAAwE;AACxE,iFAA4E;AAE5E,gFAA2E;AAC3E,oFAA+E;AAE/E,gFAA2E;AAC3E,oFAA+E;AAE/E,0EAAqE;AACrE,8EAAyE;AAIlE,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAGzB,MAAM,CAAC,QAAQ;QACX,MAAM,SAAS,GAAU,CAAC,sCAAiB,CAAC,CAAC;QAC7C,MAAM,WAAW,GAAU,EAAE,CAAC;QAC9B,MAAM,OAAO,GAAU;YACnB,yBAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAC1C,kBAAU;YACV,qBAAY,CAAC,OAAO,EAAE;SACzB,CAAC;QAEF,MAAM,MAAM,GAAG,IAAI,sBAAa,EAAE,CAAC;QAGnC,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,EAAE,CAAC;YACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;YAC9C,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;YACtD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;YAEpD,IAAI,QAAQ,IAAI,YAAY,IAAI,WAAW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