@nauth-toolkit/social-facebook 0.1.26 → 0.1.27
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.
- package/dist/nestjs/facebook-social-auth.module.d.ts +1 -12
- package/dist/nestjs/facebook-social-auth.module.d.ts.map +1 -1
- package/dist/nestjs/facebook-social-auth.module.js +6 -23
- package/dist/nestjs/facebook-social-auth.module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { OnModuleInit } from '@nestjs/common';
|
|
2
|
-
import { FacebookSocialAuthService } from '../src/facebook-social-auth.service';
|
|
3
|
-
import { SocialProviderRegistry } from '@nauth-toolkit/core/internal';
|
|
4
1
|
/**
|
|
5
2
|
* Facebook Social Authentication Module (NestJS Adapter)
|
|
6
3
|
*
|
|
@@ -34,14 +31,6 @@ import { SocialProviderRegistry } from '@nauth-toolkit/core/internal';
|
|
|
34
31
|
* constructor(private facebookAuth: FacebookSocialAuthService) {}
|
|
35
32
|
* ```
|
|
36
33
|
*/
|
|
37
|
-
export declare class FacebookSocialAuthModule
|
|
38
|
-
private readonly facebookSocialAuthService;
|
|
39
|
-
private readonly providerRegistry;
|
|
40
|
-
constructor(facebookSocialAuthService: FacebookSocialAuthService, providerRegistry: SocialProviderRegistry);
|
|
41
|
-
/**
|
|
42
|
-
* Auto-register Facebook provider with the SocialProviderRegistry
|
|
43
|
-
* when the module is initialized (only if enabled in config).
|
|
44
|
-
*/
|
|
45
|
-
onModuleInit(): void;
|
|
34
|
+
export declare class FacebookSocialAuthModule {
|
|
46
35
|
}
|
|
47
36
|
//# sourceMappingURL=facebook-social-auth.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facebook-social-auth.module.d.ts","sourceRoot":"","sources":["../../nestjs/facebook-social-auth.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"facebook-social-auth.module.d.ts","sourceRoot":"","sources":["../../nestjs/facebook-social-auth.module.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAyEa,wBAAwB;CAAG"}
|
|
@@ -5,9 +5,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.FacebookSocialAuthModule = void 0;
|
|
13
10
|
const common_1 = require("@nestjs/common");
|
|
@@ -51,23 +48,6 @@ const token_verifier_service_1 = require("../src/token-verifier.service");
|
|
|
51
48
|
* ```
|
|
52
49
|
*/
|
|
53
50
|
let FacebookSocialAuthModule = class FacebookSocialAuthModule {
|
|
54
|
-
facebookSocialAuthService;
|
|
55
|
-
providerRegistry;
|
|
56
|
-
constructor(facebookSocialAuthService, providerRegistry) {
|
|
57
|
-
this.facebookSocialAuthService = facebookSocialAuthService;
|
|
58
|
-
this.providerRegistry = providerRegistry;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Auto-register Facebook provider with the SocialProviderRegistry
|
|
62
|
-
* when the module is initialized (only if enabled in config).
|
|
63
|
-
*/
|
|
64
|
-
onModuleInit() {
|
|
65
|
-
const config = this.facebookSocialAuthService['config']; // Access protected config
|
|
66
|
-
const providerConfig = config.social?.facebook;
|
|
67
|
-
if (providerConfig?.enabled) {
|
|
68
|
-
this.providerRegistry.registerProvider(this.facebookSocialAuthService);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
51
|
};
|
|
72
52
|
exports.FacebookSocialAuthModule = FacebookSocialAuthModule;
|
|
73
53
|
exports.FacebookSocialAuthModule = FacebookSocialAuthModule = __decorate([
|
|
@@ -107,10 +87,13 @@ exports.FacebookSocialAuthModule = FacebookSocialAuthModule = __decorate([
|
|
|
107
87
|
{ token: 'FACEBOOK_TOKEN_VERIFIER', optional: true },
|
|
108
88
|
],
|
|
109
89
|
},
|
|
90
|
+
// Bind to shared discovery token (registration is performed by AuthModule at app bootstrap)
|
|
91
|
+
{
|
|
92
|
+
provide: internal_1.NAUTH_SOCIAL_PROVIDER_TOKEN,
|
|
93
|
+
useExisting: facebook_social_auth_service_1.FacebookSocialAuthService,
|
|
94
|
+
},
|
|
110
95
|
],
|
|
111
96
|
exports: [facebook_social_auth_service_1.FacebookSocialAuthService],
|
|
112
|
-
})
|
|
113
|
-
__metadata("design:paramtypes", [facebook_social_auth_service_1.FacebookSocialAuthService,
|
|
114
|
-
internal_1.SocialProviderRegistry])
|
|
97
|
+
})
|
|
115
98
|
], FacebookSocialAuthModule);
|
|
116
99
|
//# sourceMappingURL=facebook-social-auth.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facebook-social-auth.module.js","sourceRoot":"","sources":["../../nestjs/facebook-social-auth.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"facebook-social-auth.module.js","sourceRoot":"","sources":["../../nestjs/facebook-social-auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,sFAAgF;AAChF,qBAAqB;AACrB,8CAU6B;AAC7B,sDAAsD;AACtD,2DAOsC;AACtC,0EAAqG;AAGrG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AA0EI,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,4DAAwB;mCAAxB,wBAAwB;IAzEpC,IAAA,eAAM,EAAC;QACN,6EAA6E;QAC7E,SAAS,EAAE;YACT,4C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