@nauth-toolkit/social-apple 0.1.25 → 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.
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { OnModuleInit } from '@nestjs/common';
|
|
2
|
-
import { AppleSocialAuthService } from '../src/apple-social-auth.service';
|
|
3
|
-
import { SocialProviderRegistry } from '@nauth-toolkit/core/internal';
|
|
4
1
|
/**
|
|
5
2
|
* Apple Social Authentication Module (NestJS Adapter)
|
|
6
3
|
*
|
|
@@ -34,14 +31,6 @@ import { SocialProviderRegistry } from '@nauth-toolkit/core/internal';
|
|
|
34
31
|
* constructor(private appleAuth: AppleSocialAuthService) {}
|
|
35
32
|
* ```
|
|
36
33
|
*/
|
|
37
|
-
export declare class AppleSocialAuthModule
|
|
38
|
-
private readonly appleSocialAuthService;
|
|
39
|
-
private readonly providerRegistry;
|
|
40
|
-
constructor(appleSocialAuthService: AppleSocialAuthService, providerRegistry: SocialProviderRegistry);
|
|
41
|
-
/**
|
|
42
|
-
* Auto-register Apple provider with the SocialProviderRegistry
|
|
43
|
-
* when the module is initialized (only if enabled in config).
|
|
44
|
-
*/
|
|
45
|
-
onModuleInit(): void;
|
|
34
|
+
export declare class AppleSocialAuthModule {
|
|
46
35
|
}
|
|
47
36
|
//# sourceMappingURL=apple-social-auth.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-social-auth.module.d.ts","sourceRoot":"","sources":["../../nestjs/apple-social-auth.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apple-social-auth.module.d.ts","sourceRoot":"","sources":["../../nestjs/apple-social-auth.module.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBA6Ea,qBAAqB;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.AppleSocialAuthModule = 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 AppleSocialAuthModule = class AppleSocialAuthModule {
|
|
54
|
-
appleSocialAuthService;
|
|
55
|
-
providerRegistry;
|
|
56
|
-
constructor(appleSocialAuthService, providerRegistry) {
|
|
57
|
-
this.appleSocialAuthService = appleSocialAuthService;
|
|
58
|
-
this.providerRegistry = providerRegistry;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Auto-register Apple provider with the SocialProviderRegistry
|
|
62
|
-
* when the module is initialized (only if enabled in config).
|
|
63
|
-
*/
|
|
64
|
-
onModuleInit() {
|
|
65
|
-
const config = this.appleSocialAuthService['config']; // Access protected config
|
|
66
|
-
const providerConfig = config.social?.apple;
|
|
67
|
-
if (providerConfig?.enabled) {
|
|
68
|
-
this.providerRegistry.registerProvider(this.appleSocialAuthService);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
51
|
};
|
|
72
52
|
exports.AppleSocialAuthModule = AppleSocialAuthModule;
|
|
73
53
|
exports.AppleSocialAuthModule = AppleSocialAuthModule = __decorate([
|
|
@@ -109,10 +89,13 @@ exports.AppleSocialAuthModule = AppleSocialAuthModule = __decorate([
|
|
|
109
89
|
'SocialProviderSecretRepository',
|
|
110
90
|
],
|
|
111
91
|
},
|
|
92
|
+
// Bind to shared discovery token (registration is performed by AuthModule at app bootstrap)
|
|
93
|
+
{
|
|
94
|
+
provide: internal_1.NAUTH_SOCIAL_PROVIDER_TOKEN,
|
|
95
|
+
useExisting: apple_social_auth_service_1.AppleSocialAuthService,
|
|
96
|
+
},
|
|
112
97
|
],
|
|
113
98
|
exports: [apple_social_auth_service_1.AppleSocialAuthService],
|
|
114
|
-
})
|
|
115
|
-
__metadata("design:paramtypes", [apple_social_auth_service_1.AppleSocialAuthService,
|
|
116
|
-
internal_1.SocialProviderRegistry])
|
|
99
|
+
})
|
|
117
100
|
], AppleSocialAuthModule);
|
|
118
101
|
//# sourceMappingURL=apple-social-auth.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-social-auth.module.js","sourceRoot":"","sources":["../../nestjs/apple-social-auth.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apple-social-auth.module.js","sourceRoot":"","sources":["../../nestjs/apple-social-auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,gFAA0E;AAC1E,qBAAqB;AACrB,8CAW6B;AAC7B,sDAAsD;AACtD,2DAOsC;AACtC,0EAAkG;AAGlG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AA8EI,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IA7EjC,IAAA,eAAM,EAAC;QACN,6EAA6E;QAC7E,SAAS,EAAE;YACT,qCAAqC;YACrC;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,UAAU,EAAE,CAAC,MAAmB,EAAE,EAAE;oBAClC,OAAO,IAAI,6CAAyB,CAAC,MAAM,CAAC,CAAC;gBAC/C,CAAC;gBACD,MAAM,EAAE,CAAC,cAAc,CAAC;aACzB;YACD,+CAA+C;YAC/C;gBACE,OAAO,EAAE,kDAAsB;gBAC/B,UAAU,EAAE,CACV,MAAmB,E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