@hichchi/nest-auth 0.0.2 → 0.0.3
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/CHANGELOG.md +16 -8
- package/README.md +782 -1567
- package/auth.module.js +50 -47
- package/auth.module.js.map +1 -1
- package/constants.js +7 -4
- package/constants.js.map +1 -1
- package/controllers/auth.controller.js +148 -145
- package/controllers/auth.controller.js.map +1 -1
- package/controllers/index.js +4 -1
- package/controllers/index.js.map +1 -1
- package/decorators/auth-info.decorator.js +6 -3
- package/decorators/auth-info.decorator.js.map +1 -1
- package/decorators/current-user.decorator.js +6 -3
- package/decorators/current-user.decorator.js.map +1 -1
- package/decorators/index.js +9 -6
- package/decorators/index.js.map +1 -1
- package/decorators/permission.decorator.js +8 -4
- package/decorators/permission.decorator.js.map +1 -1
- package/decorators/roles.decorator.js +8 -4
- package/decorators/roles.decorator.js.map +1 -1
- package/decorators/socket-id.decorator.js +6 -3
- package/decorators/socket-id.decorator.js.map +1 -1
- package/decorators/subdomain.decorator.js +11 -8
- package/decorators/subdomain.decorator.js.map +1 -1
- package/dtos/email-verify.dto.js +17 -14
- package/dtos/email-verify.dto.js.map +1 -1
- package/dtos/get-auth-response.dto.js +13 -10
- package/dtos/get-auth-response.dto.js.map +1 -1
- package/dtos/index.js +14 -11
- package/dtos/index.js.map +1 -1
- package/dtos/refresh-token.dto.js +13 -10
- package/dtos/refresh-token.dto.js.map +1 -1
- package/dtos/request-reset.dto.js +12 -9
- package/dtos/request-reset.dto.js.map +1 -1
- package/dtos/resend-email-verify.dto.js +12 -9
- package/dtos/resend-email-verify.dto.js.map +1 -1
- package/dtos/reset-password-token-verify.dto.js +13 -10
- package/dtos/reset-password-token-verify.dto.js.map +1 -1
- package/dtos/reset-password.dto.js +16 -13
- package/dtos/reset-password.dto.js.map +1 -1
- package/dtos/sign-in.dto.js +21 -18
- package/dtos/sign-in.dto.js.map +1 -1
- package/dtos/sign-up.dto.js +26 -23
- package/dtos/sign-up.dto.js.map +1 -1
- package/dtos/update-password.dto.js +15 -12
- package/dtos/update-password.dto.js.map +1 -1
- package/dtos/view-user.dto.js +5 -1
- package/dtos/view-user.dto.js.map +1 -1
- package/extractors/cookie-extractor.js +6 -3
- package/extractors/cookie-extractor.js.map +1 -1
- package/extractors/index.js +4 -1
- package/extractors/index.js.map +1 -1
- package/guards/google-auth.guard.js +24 -21
- package/guards/google-auth.guard.js.map +1 -1
- package/guards/index.js +8 -5
- package/guards/index.js.map +1 -1
- package/guards/jwt-auth.guard.js +43 -40
- package/guards/jwt-auth.guard.js.map +1 -1
- package/guards/local-auth.guard.js +15 -12
- package/guards/local-auth.guard.js.map +1 -1
- package/guards/permission.guard.js +15 -12
- package/guards/permission.guard.js.map +1 -1
- package/guards/role.guard.js +15 -12
- package/guards/role.guard.js.map +1 -1
- package/index.js +18 -13
- package/index.js.map +1 -1
- package/interfaces/auth-options.interface.js +2 -1
- package/interfaces/auth-user.type.js +2 -1
- package/interfaces/cache-user.interfaces.js +2 -1
- package/interfaces/index.js +9 -6
- package/interfaces/index.js.map +1 -1
- package/interfaces/token-data.interface.js +2 -1
- package/interfaces/user-extra.interfaces.js +2 -1
- package/interfaces/user-service.interface.d.ts +1 -1
- package/interfaces/user-service.interface.js +2 -1
- package/package.json +6 -5
- package/pipes/index.js +4 -1
- package/pipes/index.js.map +1 -1
- package/pipes/override-sign-up-dto.pipe.js +16 -13
- package/pipes/override-sign-up-dto.pipe.js.map +1 -1
- package/providers/index.js +4 -1
- package/providers/index.js.map +1 -1
- package/providers/user-service.provider.js +2 -1
- package/readme-top.md +24 -24
- package/services/auth.service.js +142 -136
- package/services/auth.service.js.map +1 -1
- package/services/encryption.service.js +18 -15
- package/services/encryption.service.js.map +1 -1
- package/services/index.js +6 -3
- package/services/index.js.map +1 -1
- package/services/jwt-token.service.js +14 -11
- package/services/jwt-token.service.js.map +1 -1
- package/services/token-verify.service.js +10 -7
- package/services/token-verify.service.js.map +1 -1
- package/services/user-cache.service.js +16 -13
- package/services/user-cache.service.js.map +1 -1
- package/strategies/google.strategy.js +16 -13
- package/strategies/google.strategy.js.map +1 -1
- package/strategies/index.js +6 -3
- package/strategies/index.js.map +1 -1
- package/strategies/jwt.strategy.js +29 -26
- package/strategies/jwt.strategy.js.map +1 -1
- package/strategies/local.strategy.js +20 -17
- package/strategies/local.strategy.js.map +1 -1
- package/tokens.js +5 -2
- package/tokens.js.map +1 -1
- package/utils/config-validation.js +22 -17
- package/utils/config-validation.js.map +1 -1
- package/utils/generate-auth-user.js +7 -4
- package/utils/generate-auth-user.js.map +1 -1
- package/utils/index.js +5 -2
- package/utils/index.js.map +1 -1
package/auth.module.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// noinspection JSUnusedGlobalSymbols
|
|
2
3
|
var HichchiAuthModule_1;
|
|
3
|
-
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.HichchiAuthModule = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
4
7
|
/**
|
|
5
8
|
* Global authentication module for NestJS applications
|
|
6
9
|
*
|
|
@@ -44,18 +47,18 @@ import { __decorate, __metadata, __param } from "tslib";
|
|
|
44
47
|
* @see {@link IUserService} Interface that user service implementations must implement
|
|
45
48
|
* @see {@link AuthOptions} Configuration options for the authentication module
|
|
46
49
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
const common_1 = require("@nestjs/common");
|
|
51
|
+
const services_1 = require("./services");
|
|
52
|
+
const jwt_1 = require("@nestjs/jwt");
|
|
53
|
+
const passport_1 = require("@nestjs/passport");
|
|
54
|
+
const tokens_1 = require("./tokens");
|
|
55
|
+
const controllers_1 = require("./controllers");
|
|
56
|
+
const strategies_1 = require("./strategies");
|
|
57
|
+
const guards_1 = require("./guards");
|
|
58
|
+
const token_verify_service_1 = require("./services/token-verify.service");
|
|
59
|
+
const nest_core_1 = require("@hichchi/nest-core");
|
|
60
|
+
const utils_1 = require("./utils");
|
|
61
|
+
const encryption_service_1 = require("./services/encryption.service");
|
|
59
62
|
let HichchiAuthModule = HichchiAuthModule_1 = class HichchiAuthModule {
|
|
60
63
|
/**
|
|
61
64
|
* Creates an instance of HichchiAuthModule
|
|
@@ -73,7 +76,7 @@ let HichchiAuthModule = HichchiAuthModule_1 = class HichchiAuthModule {
|
|
|
73
76
|
* @see {@link IUserService} Interface that user service implementations must implement
|
|
74
77
|
*/
|
|
75
78
|
constructor(userService, options) {
|
|
76
|
-
validateUserServiceProvider(userService, options);
|
|
79
|
+
(0, utils_1.validateUserServiceProvider)(userService, options);
|
|
77
80
|
}
|
|
78
81
|
/**
|
|
79
82
|
* Register the HichchiAuthModule
|
|
@@ -139,14 +142,14 @@ let HichchiAuthModule = HichchiAuthModule_1 = class HichchiAuthModule {
|
|
|
139
142
|
* @see {@link validateUserServiceProvider} Function that validates user service provider
|
|
140
143
|
*/
|
|
141
144
|
static register(userServiceProvider, options) {
|
|
142
|
-
validateJwtOptions(options.jwt);
|
|
145
|
+
(0, utils_1.validateJwtOptions)(options.jwt);
|
|
143
146
|
const imports = [
|
|
144
|
-
JwtModule.register(options.jwt),
|
|
145
|
-
PassportModule,
|
|
147
|
+
jwt_1.JwtModule.register(options.jwt),
|
|
148
|
+
passport_1.PassportModule,
|
|
146
149
|
];
|
|
147
150
|
if (options.redis) {
|
|
148
|
-
validateRedisOptions(options.redis);
|
|
149
|
-
imports.push(CacheModule.register(options.redis));
|
|
151
|
+
(0, utils_1.validateRedisOptions)(options.redis);
|
|
152
|
+
imports.push(nest_core_1.CacheModule.register(options.redis));
|
|
150
153
|
}
|
|
151
154
|
if (userServiceProvider.imports) {
|
|
152
155
|
imports.push(...userServiceProvider.imports);
|
|
@@ -156,50 +159,50 @@ let HichchiAuthModule = HichchiAuthModule_1 = class HichchiAuthModule {
|
|
|
156
159
|
imports,
|
|
157
160
|
providers: [
|
|
158
161
|
{
|
|
159
|
-
provide: USER_SERVICE,
|
|
162
|
+
provide: tokens_1.USER_SERVICE,
|
|
160
163
|
useFactory: userServiceProvider.useFactory,
|
|
161
164
|
useExisting: userServiceProvider.useExisting,
|
|
162
165
|
inject: userServiceProvider.inject,
|
|
163
166
|
},
|
|
164
167
|
{
|
|
165
|
-
provide: AUTH_OPTIONS,
|
|
168
|
+
provide: tokens_1.AUTH_OPTIONS,
|
|
166
169
|
useValue: options,
|
|
167
170
|
},
|
|
168
|
-
AuthService,
|
|
169
|
-
UserCacheService,
|
|
170
|
-
EncryptionService,
|
|
171
|
-
JwtTokenService,
|
|
172
|
-
LocalStrategy,
|
|
173
|
-
JwtStrategy,
|
|
174
|
-
JwtAuthGuard,
|
|
175
|
-
GoogleStrategy,
|
|
176
|
-
GoogleAuthGuard,
|
|
177
|
-
TokenVerifyService,
|
|
171
|
+
services_1.AuthService,
|
|
172
|
+
services_1.UserCacheService,
|
|
173
|
+
encryption_service_1.EncryptionService,
|
|
174
|
+
services_1.JwtTokenService,
|
|
175
|
+
strategies_1.LocalStrategy,
|
|
176
|
+
strategies_1.JwtStrategy,
|
|
177
|
+
guards_1.JwtAuthGuard,
|
|
178
|
+
strategies_1.GoogleStrategy,
|
|
179
|
+
guards_1.GoogleAuthGuard,
|
|
180
|
+
token_verify_service_1.TokenVerifyService,
|
|
178
181
|
...(userServiceProvider.inject ?? []),
|
|
179
182
|
],
|
|
180
|
-
controllers: [AuthController],
|
|
183
|
+
controllers: [controllers_1.AuthController],
|
|
181
184
|
exports: [
|
|
182
|
-
AuthService,
|
|
183
|
-
JwtStrategy,
|
|
184
|
-
JwtAuthGuard,
|
|
185
|
-
GoogleStrategy,
|
|
186
|
-
GoogleAuthGuard,
|
|
187
|
-
UserCacheService,
|
|
188
|
-
TokenVerifyService,
|
|
185
|
+
services_1.AuthService,
|
|
186
|
+
strategies_1.JwtStrategy,
|
|
187
|
+
guards_1.JwtAuthGuard,
|
|
188
|
+
strategies_1.GoogleStrategy,
|
|
189
|
+
guards_1.GoogleAuthGuard,
|
|
190
|
+
services_1.UserCacheService,
|
|
191
|
+
token_verify_service_1.TokenVerifyService,
|
|
189
192
|
{
|
|
190
|
-
provide: AUTH_OPTIONS,
|
|
193
|
+
provide: tokens_1.AUTH_OPTIONS,
|
|
191
194
|
useValue: options,
|
|
192
195
|
},
|
|
193
196
|
],
|
|
194
197
|
};
|
|
195
198
|
}
|
|
196
199
|
};
|
|
197
|
-
HichchiAuthModule =
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
__param(
|
|
202
|
-
|
|
200
|
+
exports.HichchiAuthModule = HichchiAuthModule;
|
|
201
|
+
exports.HichchiAuthModule = HichchiAuthModule = HichchiAuthModule_1 = tslib_1.__decorate([
|
|
202
|
+
(0, common_1.Global)(),
|
|
203
|
+
(0, common_1.Module)({}),
|
|
204
|
+
tslib_1.__param(0, (0, common_1.Inject)(tokens_1.USER_SERVICE)),
|
|
205
|
+
tslib_1.__param(1, (0, common_1.Inject)(tokens_1.AUTH_OPTIONS)),
|
|
206
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object])
|
|
203
207
|
], HichchiAuthModule);
|
|
204
|
-
export { HichchiAuthModule };
|
|
205
208
|
//# sourceMappingURL=auth.module.js.map
|
package/auth.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../libs/nest-auth/src/auth.module.ts"],"names":[],"mappings":"AAAA,qCAAqC
|
|
1
|
+
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../libs/nest-auth/src/auth.module.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;;;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,2CAA6E;AAC7E,yCAA4E;AAE5E,qCAA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;gBACD,sBAAW;gBACX,2BAAgB;gBAChB,sCAAiB;gBACjB,0BAAe;gBACf,0BAAa;gBACb,wBAAW;gBACX,qBAAY;gBACZ,2BAAc;gBACd,wBAAe;gBACf,yCAAkB;gBAClB,GAAG,CAAE,mBAAkD,CAAC,MAAM,IAAI,EAAE,CAAC;aACxE;YACD,WAAW,EAAE,CAAC,4BAAc,CAAC;YAC7B,OAAO,EAAE;gBACL,sBAAW;gBACX,wBAAW;gBACX,qBAAY;gBACZ,2BAAc;gBACd,wBAAe;gBACf,2BAAgB;gBAChB,yCAAkB;gBAClB;oBACI,OAAO,EAAE,qBAAY;oBACrB,QAAQ,EAAE,OAAO;iBACpB;aACJ;SACJ,CAAC;IACN,CAAC;CACJ,CAAA;AA9IY,8CAAiB;4BAAjB,iBAAiB;IAF7B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;IAiBM,mBAAA,IAAA,eAAM,EAAC,qBAAY,CAAC,CAAA;IAA6B,mBAAA,IAAA,eAAM,EAAC,qBAAY,CAAC,CAAA;;GAhBzE,iBAAiB,CA8I7B"}
|
package/constants.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.USERNAME_KEY = exports.EMAIL_KEY = exports.REFRESH_TOKEN_COOKIE_NAME = exports.ACCESS_TOKEN_COOKIE_NAME = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Cookie name for storing the access token
|
|
3
6
|
*
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
* @see {@link AuthMethod.COOKIE} Authentication method that uses cookies
|
|
33
36
|
* @see {@link REFRESH_TOKEN_COOKIE_NAME} Related cookie for refresh tokens
|
|
34
37
|
*/
|
|
35
|
-
|
|
38
|
+
exports.ACCESS_TOKEN_COOKIE_NAME = "Authorization";
|
|
36
39
|
/**
|
|
37
40
|
* Cookie name for storing the refresh token
|
|
38
41
|
*
|
|
@@ -66,7 +69,7 @@ export const ACCESS_TOKEN_COOKIE_NAME = "Authorization";
|
|
|
66
69
|
* @see {@link AuthMethod.COOKIE} Authentication method that uses cookies
|
|
67
70
|
* @see {@link ACCESS_TOKEN_COOKIE_NAME} Related cookie for access tokens
|
|
68
71
|
*/
|
|
69
|
-
|
|
72
|
+
exports.REFRESH_TOKEN_COOKIE_NAME = "Refresh";
|
|
70
73
|
/**
|
|
71
74
|
* Field key for email identification in authentication
|
|
72
75
|
*
|
|
@@ -99,7 +102,7 @@ export const REFRESH_TOKEN_COOKIE_NAME = "Refresh";
|
|
|
99
102
|
* @see {@link SignInDto} DTO that uses this field for sign-in
|
|
100
103
|
* @see {@link USERNAME_KEY} Alternative authentication field
|
|
101
104
|
*/
|
|
102
|
-
|
|
105
|
+
exports.EMAIL_KEY = "email";
|
|
103
106
|
/**
|
|
104
107
|
* Field key for username identification in authentication
|
|
105
108
|
*
|
|
@@ -132,5 +135,5 @@ export const EMAIL_KEY = "email";
|
|
|
132
135
|
* @see {@link SignInDto} DTO that uses this field for sign-in
|
|
133
136
|
* @see {@link EMAIL_KEY} Alternative authentication field
|
|
134
137
|
*/
|
|
135
|
-
|
|
138
|
+
exports.USERNAME_KEY = "username";
|
|
136
139
|
//# sourceMappingURL=constants.js.map
|
package/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../libs/nest-auth/src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../libs/nest-auth/src/constants.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACU,QAAA,wBAAwB,GAAG,eAAe,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACU,QAAA,yBAAyB,GAAG,SAAS,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACU,QAAA,SAAS,GAAG,OAAO,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACU,QAAA,YAAY,GAAG,UAAU,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthController = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const auth_1 = require("@hichchi/nest-connector/auth");
|
|
7
|
+
const services_1 = require("../services");
|
|
8
|
+
const tokens_1 = require("../tokens");
|
|
9
|
+
const guards_1 = require("../guards");
|
|
10
|
+
const pipes_1 = require("../pipes");
|
|
11
|
+
const decorators_1 = require("../decorators");
|
|
12
|
+
const dtos_1 = require("../dtos");
|
|
13
|
+
const nest_connector_1 = require("@hichchi/nest-connector");
|
|
14
|
+
const nest_core_1 = require("@hichchi/nest-core");
|
|
15
|
+
const utils_1 = require("@hichchi/utils");
|
|
13
16
|
/**
|
|
14
17
|
* Authentication controller that handles all authentication-related endpoints.
|
|
15
18
|
*
|
|
@@ -99,7 +102,7 @@ let AuthController = class AuthController {
|
|
|
99
102
|
*/
|
|
100
103
|
signUp(request, dto) {
|
|
101
104
|
if (this.options.disableSignUp) {
|
|
102
|
-
throw new ForbiddenException(AuthErrors.USER_403_SIGN_UP);
|
|
105
|
+
throw new common_1.ForbiddenException(auth_1.AuthErrors.USER_403_SIGN_UP);
|
|
103
106
|
}
|
|
104
107
|
return this.authService.signUp(request, dto);
|
|
105
108
|
}
|
|
@@ -218,8 +221,8 @@ let AuthController = class AuthController {
|
|
|
218
221
|
response.redirect(`${redirectUrl}?token=${authUser.accessToken}`);
|
|
219
222
|
}
|
|
220
223
|
catch (error) {
|
|
221
|
-
LoggerService.error(error, this.constructor.name);
|
|
222
|
-
throw new InternalServerErrorException(AuthErrors.AUTH_500_SOCIAL_SIGN_IN_CALLBACK);
|
|
224
|
+
nest_core_1.LoggerService.error(error, this.constructor.name);
|
|
225
|
+
throw new common_1.InternalServerErrorException(auth_1.AuthErrors.AUTH_500_SOCIAL_SIGN_IN_CALLBACK);
|
|
223
226
|
}
|
|
224
227
|
}
|
|
225
228
|
/**
|
|
@@ -464,7 +467,7 @@ let AuthController = class AuthController {
|
|
|
464
467
|
async verifyEmail(request, response, emailVerifyDto) {
|
|
465
468
|
const redirectUrl = emailVerifyDto.redirectUrl &&
|
|
466
469
|
this.options.allowedRedirectDomains?.length &&
|
|
467
|
-
isValidRedirectUrl(emailVerifyDto.redirectUrl, this.options.allowedRedirectDomains)
|
|
470
|
+
(0, utils_1.isValidRedirectUrl)(emailVerifyDto.redirectUrl, this.options.allowedRedirectDomains)
|
|
468
471
|
? emailVerifyDto.redirectUrl
|
|
469
472
|
: this.options.emailVerifyRedirect;
|
|
470
473
|
const status = await this.authService.verifyEmail(request, emailVerifyDto);
|
|
@@ -633,148 +636,148 @@ let AuthController = class AuthController {
|
|
|
633
636
|
return this.authService.signOut(request, authUser, response);
|
|
634
637
|
}
|
|
635
638
|
};
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
__param(
|
|
641
|
-
|
|
642
|
-
__metadata("design:
|
|
643
|
-
__metadata("design:
|
|
639
|
+
exports.AuthController = AuthController;
|
|
640
|
+
tslib_1.__decorate([
|
|
641
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.SIGN_UP),
|
|
642
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.CREATED),
|
|
643
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
644
|
+
tslib_1.__param(1, (0, common_1.Body)(pipes_1.OverrideSignUpDtoPipe)),
|
|
645
|
+
tslib_1.__metadata("design:type", Function),
|
|
646
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
647
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
644
648
|
], AuthController.prototype, "signUp", null);
|
|
645
|
-
__decorate([
|
|
646
|
-
Post(AuthEndpoint.SIGN_IN),
|
|
647
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
648
|
-
UseGuards(LocalAuthGuard),
|
|
649
|
-
__param(0, Req()),
|
|
650
|
-
__param(1, CurrentUser()),
|
|
651
|
-
__param(2, Body()),
|
|
652
|
-
__param(3, Res({ passthrough: true })),
|
|
653
|
-
__metadata("design:type", Function),
|
|
654
|
-
__metadata("design:paramtypes", [Object, Object, SignInDto, Object]),
|
|
655
|
-
__metadata("design:returntype", Promise)
|
|
649
|
+
tslib_1.__decorate([
|
|
650
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.SIGN_IN),
|
|
651
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
652
|
+
(0, common_1.UseGuards)(guards_1.LocalAuthGuard),
|
|
653
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
654
|
+
tslib_1.__param(1, (0, decorators_1.CurrentUser)()),
|
|
655
|
+
tslib_1.__param(2, (0, common_1.Body)()),
|
|
656
|
+
tslib_1.__param(3, (0, common_1.Res)({ passthrough: true })),
|
|
657
|
+
tslib_1.__metadata("design:type", Function),
|
|
658
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, dtos_1.SignInDto, Object]),
|
|
659
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
656
660
|
], AuthController.prototype, "signIn", null);
|
|
657
|
-
__decorate([
|
|
658
|
-
Get(AuthEndpoint.GOOGLE_SIGN_IN),
|
|
659
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
660
|
-
UseGuards(GoogleAuthGuard),
|
|
661
|
-
__param(0, Query("redirectUrl")),
|
|
662
|
-
__metadata("design:type", Function),
|
|
663
|
-
__metadata("design:paramtypes", [String]),
|
|
664
|
-
__metadata("design:returntype", Promise)
|
|
661
|
+
tslib_1.__decorate([
|
|
662
|
+
(0, common_1.Get)(auth_1.AuthEndpoint.GOOGLE_SIGN_IN),
|
|
663
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
664
|
+
(0, common_1.UseGuards)(guards_1.GoogleAuthGuard),
|
|
665
|
+
tslib_1.__param(0, (0, common_1.Query)("redirectUrl")),
|
|
666
|
+
tslib_1.__metadata("design:type", Function),
|
|
667
|
+
tslib_1.__metadata("design:paramtypes", [String]),
|
|
668
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
665
669
|
], AuthController.prototype, "googleSignIn", null);
|
|
666
|
-
__decorate([
|
|
667
|
-
Get(AuthEndpoint.GOOGLE_CALLBACK),
|
|
668
|
-
UseGuards(GoogleAuthGuard),
|
|
669
|
-
__param(0, Res()),
|
|
670
|
-
__param(1, AuthInfo()),
|
|
671
|
-
__param(2, Query("state")),
|
|
672
|
-
__metadata("design:type", Function),
|
|
673
|
-
__metadata("design:paramtypes", [Object, Object, String]),
|
|
674
|
-
__metadata("design:returntype", void 0)
|
|
670
|
+
tslib_1.__decorate([
|
|
671
|
+
(0, common_1.Get)(auth_1.AuthEndpoint.GOOGLE_CALLBACK),
|
|
672
|
+
(0, common_1.UseGuards)(guards_1.GoogleAuthGuard),
|
|
673
|
+
tslib_1.__param(0, (0, common_1.Res)()),
|
|
674
|
+
tslib_1.__param(1, (0, decorators_1.AuthInfo)()),
|
|
675
|
+
tslib_1.__param(2, (0, common_1.Query)("state")),
|
|
676
|
+
tslib_1.__metadata("design:type", Function),
|
|
677
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, String]),
|
|
678
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
675
679
|
], AuthController.prototype, "googleCallback", null);
|
|
676
|
-
__decorate([
|
|
677
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
678
|
-
Post(AuthEndpoint.GET_AUTH_RESPONSE),
|
|
679
|
-
__param(0, Req()),
|
|
680
|
-
__param(1, Res({ passthrough: true })),
|
|
681
|
-
__param(2, Body()),
|
|
682
|
-
__metadata("design:type", Function),
|
|
683
|
-
__metadata("design:paramtypes", [Object, Object, GetAuthResponseDto]),
|
|
684
|
-
__metadata("design:returntype", Promise)
|
|
680
|
+
tslib_1.__decorate([
|
|
681
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
682
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.GET_AUTH_RESPONSE),
|
|
683
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
684
|
+
tslib_1.__param(1, (0, common_1.Res)({ passthrough: true })),
|
|
685
|
+
tslib_1.__param(2, (0, common_1.Body)()),
|
|
686
|
+
tslib_1.__metadata("design:type", Function),
|
|
687
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, dtos_1.GetAuthResponseDto]),
|
|
688
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
685
689
|
], AuthController.prototype, "getAuthResponse", null);
|
|
686
|
-
__decorate([
|
|
687
|
-
Post(AuthEndpoint.REFRESH_TOKEN),
|
|
688
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
689
|
-
__param(0, Req()),
|
|
690
|
-
__param(1, Body()),
|
|
691
|
-
__param(2, Res({ passthrough: true })),
|
|
692
|
-
__metadata("design:type", Function),
|
|
693
|
-
__metadata("design:paramtypes", [Object, RefreshTokenDto, Object]),
|
|
694
|
-
__metadata("design:returntype", Promise)
|
|
690
|
+
tslib_1.__decorate([
|
|
691
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.REFRESH_TOKEN),
|
|
692
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
693
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
694
|
+
tslib_1.__param(1, (0, common_1.Body)()),
|
|
695
|
+
tslib_1.__param(2, (0, common_1.Res)({ passthrough: true })),
|
|
696
|
+
tslib_1.__metadata("design:type", Function),
|
|
697
|
+
tslib_1.__metadata("design:paramtypes", [Object, dtos_1.RefreshTokenDto, Object]),
|
|
698
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
695
699
|
], AuthController.prototype, "refreshTokens", null);
|
|
696
|
-
__decorate([
|
|
697
|
-
Get(AuthEndpoint.ME),
|
|
698
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
699
|
-
UseGuards(JwtAuthGuard),
|
|
700
|
-
__param(0, Req()),
|
|
701
|
-
__param(1, CurrentUser()),
|
|
702
|
-
__metadata("design:type", Function),
|
|
703
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
704
|
-
__metadata("design:returntype", Promise)
|
|
700
|
+
tslib_1.__decorate([
|
|
701
|
+
(0, common_1.Get)(auth_1.AuthEndpoint.ME),
|
|
702
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
703
|
+
(0, common_1.UseGuards)(guards_1.JwtAuthGuard),
|
|
704
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
705
|
+
tslib_1.__param(1, (0, decorators_1.CurrentUser)()),
|
|
706
|
+
tslib_1.__metadata("design:type", Function),
|
|
707
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
708
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
705
709
|
], AuthController.prototype, "getCurrentUser", null);
|
|
706
|
-
__decorate([
|
|
707
|
-
Post(AuthEndpoint.CHANGE_PASSWORD),
|
|
708
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
709
|
-
UseGuards(JwtAuthGuard),
|
|
710
|
-
__param(0, Req()),
|
|
711
|
-
__param(1, CurrentUser()),
|
|
712
|
-
__param(2, Body()),
|
|
713
|
-
__metadata("design:type", Function),
|
|
714
|
-
__metadata("design:paramtypes", [Object, Object, UpdatePasswordDto]),
|
|
715
|
-
__metadata("design:returntype", Promise)
|
|
710
|
+
tslib_1.__decorate([
|
|
711
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.CHANGE_PASSWORD),
|
|
712
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
713
|
+
(0, common_1.UseGuards)(guards_1.JwtAuthGuard),
|
|
714
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
715
|
+
tslib_1.__param(1, (0, decorators_1.CurrentUser)()),
|
|
716
|
+
tslib_1.__param(2, (0, common_1.Body)()),
|
|
717
|
+
tslib_1.__metadata("design:type", Function),
|
|
718
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, dtos_1.UpdatePasswordDto]),
|
|
719
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
716
720
|
], AuthController.prototype, "changePassword", null);
|
|
717
|
-
__decorate([
|
|
718
|
-
Post(AuthEndpoint.RESEND_EMAIL_VERIFICATION),
|
|
719
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
720
|
-
__param(0, Req()),
|
|
721
|
-
__param(1, Body()),
|
|
722
|
-
__metadata("design:type", Function),
|
|
723
|
-
__metadata("design:paramtypes", [Object, ResendEmailVerifyDto]),
|
|
724
|
-
__metadata("design:returntype", Promise)
|
|
721
|
+
tslib_1.__decorate([
|
|
722
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.RESEND_EMAIL_VERIFICATION),
|
|
723
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
724
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
725
|
+
tslib_1.__param(1, (0, common_1.Body)()),
|
|
726
|
+
tslib_1.__metadata("design:type", Function),
|
|
727
|
+
tslib_1.__metadata("design:paramtypes", [Object, dtos_1.ResendEmailVerifyDto]),
|
|
728
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
725
729
|
], AuthController.prototype, "resendEmailVerification", null);
|
|
726
|
-
__decorate([
|
|
727
|
-
Get(AuthEndpoint.VERIFY_EMAIL),
|
|
728
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
729
|
-
__param(0, Req()),
|
|
730
|
-
__param(1, Res()),
|
|
731
|
-
__param(2, Query()),
|
|
732
|
-
__metadata("design:type", Function),
|
|
733
|
-
__metadata("design:paramtypes", [Object, Object, EmailVerifyDto]),
|
|
734
|
-
__metadata("design:returntype", Promise)
|
|
730
|
+
tslib_1.__decorate([
|
|
731
|
+
(0, common_1.Get)(auth_1.AuthEndpoint.VERIFY_EMAIL),
|
|
732
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
733
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
734
|
+
tslib_1.__param(1, (0, common_1.Res)()),
|
|
735
|
+
tslib_1.__param(2, (0, common_1.Query)()),
|
|
736
|
+
tslib_1.__metadata("design:type", Function),
|
|
737
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, dtos_1.EmailVerifyDto]),
|
|
738
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
735
739
|
], AuthController.prototype, "verifyEmail", null);
|
|
736
|
-
__decorate([
|
|
737
|
-
Post(AuthEndpoint.REQUEST_PASSWORD_RESET),
|
|
738
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
739
|
-
__param(0, Req()),
|
|
740
|
-
__param(1, Body()),
|
|
741
|
-
__metadata("design:type", Function),
|
|
742
|
-
__metadata("design:paramtypes", [Object, RequestResetDto]),
|
|
743
|
-
__metadata("design:returntype", Promise)
|
|
740
|
+
tslib_1.__decorate([
|
|
741
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.REQUEST_PASSWORD_RESET),
|
|
742
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
743
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
744
|
+
tslib_1.__param(1, (0, common_1.Body)()),
|
|
745
|
+
tslib_1.__metadata("design:type", Function),
|
|
746
|
+
tslib_1.__metadata("design:paramtypes", [Object, dtos_1.RequestResetDto]),
|
|
747
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
744
748
|
], AuthController.prototype, "requestPasswordReset", null);
|
|
745
|
-
__decorate([
|
|
746
|
-
Post(AuthEndpoint.RESET_PASSWORD_VERIFY),
|
|
747
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
748
|
-
__param(0, Req()),
|
|
749
|
-
__param(1, Body()),
|
|
750
|
-
__metadata("design:type", Function),
|
|
751
|
-
__metadata("design:paramtypes", [Object, ResetPasswordTokenVerifyDto]),
|
|
752
|
-
__metadata("design:returntype", Promise)
|
|
749
|
+
tslib_1.__decorate([
|
|
750
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.RESET_PASSWORD_VERIFY),
|
|
751
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
752
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
753
|
+
tslib_1.__param(1, (0, common_1.Body)()),
|
|
754
|
+
tslib_1.__metadata("design:type", Function),
|
|
755
|
+
tslib_1.__metadata("design:paramtypes", [Object, dtos_1.ResetPasswordTokenVerifyDto]),
|
|
756
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
753
757
|
], AuthController.prototype, "verifyResetPasswordToken", null);
|
|
754
|
-
__decorate([
|
|
755
|
-
Post(AuthEndpoint.RESET_PASSWORD),
|
|
756
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
757
|
-
__param(0, Req()),
|
|
758
|
-
__param(1, Body()),
|
|
759
|
-
__metadata("design:type", Function),
|
|
760
|
-
__metadata("design:paramtypes", [Object, ResetPasswordDto]),
|
|
761
|
-
__metadata("design:returntype", Promise)
|
|
758
|
+
tslib_1.__decorate([
|
|
759
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.RESET_PASSWORD),
|
|
760
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
761
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
762
|
+
tslib_1.__param(1, (0, common_1.Body)()),
|
|
763
|
+
tslib_1.__metadata("design:type", Function),
|
|
764
|
+
tslib_1.__metadata("design:paramtypes", [Object, dtos_1.ResetPasswordDto]),
|
|
765
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
762
766
|
], AuthController.prototype, "resetPassword", null);
|
|
763
|
-
__decorate([
|
|
764
|
-
Post(AuthEndpoint.SIGN_OUT),
|
|
765
|
-
HttpCode(HttpSuccessStatus.OK),
|
|
766
|
-
UseGuards(JwtAuthGuard),
|
|
767
|
-
__param(0, Req()),
|
|
768
|
-
__param(1, CurrentUser()),
|
|
769
|
-
__param(2, Res({ passthrough: true })),
|
|
770
|
-
__metadata("design:type", Function),
|
|
771
|
-
__metadata("design:paramtypes", [Object, Object, Object]),
|
|
772
|
-
__metadata("design:returntype", Promise)
|
|
767
|
+
tslib_1.__decorate([
|
|
768
|
+
(0, common_1.Post)(auth_1.AuthEndpoint.SIGN_OUT),
|
|
769
|
+
(0, common_1.HttpCode)(nest_connector_1.HttpSuccessStatus.OK),
|
|
770
|
+
(0, common_1.UseGuards)(guards_1.JwtAuthGuard),
|
|
771
|
+
tslib_1.__param(0, (0, common_1.Req)()),
|
|
772
|
+
tslib_1.__param(1, (0, decorators_1.CurrentUser)()),
|
|
773
|
+
tslib_1.__param(2, (0, common_1.Res)({ passthrough: true })),
|
|
774
|
+
tslib_1.__metadata("design:type", Function),
|
|
775
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, Object]),
|
|
776
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
773
777
|
], AuthController.prototype, "signOut", null);
|
|
774
|
-
AuthController = __decorate([
|
|
775
|
-
Controller(Endpoint.AUTH),
|
|
776
|
-
__param(0, Inject(AUTH_OPTIONS)),
|
|
777
|
-
__metadata("design:paramtypes", [Object, AuthService])
|
|
778
|
+
exports.AuthController = AuthController = tslib_1.__decorate([
|
|
779
|
+
(0, common_1.Controller)(nest_connector_1.Endpoint.AUTH),
|
|
780
|
+
tslib_1.__param(0, (0, common_1.Inject)(tokens_1.AUTH_OPTIONS)),
|
|
781
|
+
tslib_1.__metadata("design:paramtypes", [Object, services_1.AuthService])
|
|
778
782
|
], AuthController);
|
|
779
|
-
export { AuthController };
|
|
780
783
|
//# sourceMappingURL=auth.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../libs/nest-auth/src/controllers/auth.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../libs/nest-auth/src/controllers/auth.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAawB;AACxB,uDAAuH;AAEvH,0CAA0C;AAC1C,sCAAyC;AAEzC,sCAA0E;AAC1E,oCAAiD;AACjD,8CAAsD;AACtD,kCAUiB;AACjB,4DAAuF;AACvF,kDAAmD;AACnD,0CAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAc;IAYW;IACX;IAZvB;;;;;;;;;OASG;IACH,YACkC,OAAoB,EAC/B,WAAwB;QADb,YAAO,GAAP,OAAO,CAAa;QAC/B,gBAAW,GAAX,WAAW,CAAa;IAC5C,CAAC;IAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IAGH,MAAM,CAAQ,OAAgB,EAA+B,GAAe;QACxE,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC7B,MAAM,IAAI,2BAAkB,CAAC,iBAAU,CAAC,gBAAgB,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACjD,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IAIH,MAAM,CACK,OAAgB,EACR,QAAkB,EACzB,UAAqB,EACD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D;AAyCD;IAFC,IAAA,aAAI,EAAC,mBAAY,CAAC,cAAc,CAAC;IACjC,IAAA,iBAAQ,EAAC,kCAAiB,CAAC,EAAE,CAAC;IAChB,mBAAA,IAAA,YAAG,GAAE,CAAA;IAAoB,mBAAA,IAAA,aAAI,GAAE,CAAA;;qDAAmB,uBAAgB;;mDAEhF;AA8CD;IAHC,IAAA,aAAI,EAAC,mBAAY,CAAC,QAAQ,CAAC;IAC3B,IAAA,iBAAQ,EAAC,kCAAiB,CAAC,EAAE,CAAC;IAC9B,IAAA,kBAAS,EAAC,qBAAY,CAAC;IAEnB,mBAAA,IAAA,YAAG,GAAE,CAAA;IACL,mBAAA,IAAA,wBAAW,GAAE,CAAA;IACb,mBAAA,IAAA,YAAG,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAA;;;;6CAG9B;yBAtqBQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,yBAAQ,CAAC,IAAI,CAAC;IAajB,mBAAA,IAAA,eAAM,EAAC,qBAAY,CAAC,CAAA;qDACW,sBAAW;GAbtC,cAAc,CAuqB1B"}
|
package/controllers/index.js
CHANGED
package/controllers/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/nest-auth/src/controllers/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/nest-auth/src/controllers/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|