New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@fintech-solutions/auth

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fintech-solutions/auth - npm Package Compare versions

Comparing version 1.2.59 to 1.2.62

@@ -26,2 +26,3 @@ "use strict";

const current_user_decorator_1 = require("../utils/decorators/current-user.decorator");
const session_response_1 = require("../dtos/session.response");
let ForgotPasswordController = class ForgotPasswordController {

@@ -86,2 +87,7 @@ constructor(sendRestorePasswordEmailUseCase, restorePasswordUseCase, updatePasswordUseCase) {

(0, common_1.UseGuards)(jwt_guard_1.JwtGuard),
(0, swagger_1.ApiResponse)({
status: 200,
description: 'Password updated',
type: session_response_1.SessionDto,
}),
__param(0, (0, current_user_decorator_1.CurrentUser)()),

@@ -88,0 +94,0 @@ __param(1, (0, common_1.Body)()),

@@ -23,2 +23,3 @@ "use strict";

const current_user_decorator_1 = require("../utils/decorators/current-user.decorator");
const session_response_1 = require("../dtos/session.response");
let RegistrationController = class RegistrationController {

@@ -42,2 +43,7 @@ constructor(signUpUseCase, deleteUserUseCase) {

(0, common_1.Post)(),
(0, swagger_1.ApiResponse)({
status: 201,
description: 'User created',
type: session_response_1.SessionDto,
}),
__param(0, (0, common_1.Body)()),

@@ -44,0 +50,0 @@ __metadata("design:type", Function),

@@ -22,2 +22,3 @@ "use strict";

const current_user_decorator_1 = require("../utils/decorators/current-user.decorator");
const session_response_1 = require("../dtos/session.response");
const refresh_session_usecase_1 = require("../usecases/refresh-session.usecase");

@@ -51,2 +52,7 @@ let SessionsController = class SessionsController {

(0, common_1.Post)(),
(0, swagger_1.ApiResponse)({
status: 200,
description: 'Session created',
type: session_response_1.SessionDto,
}),
__param(0, (0, common_1.Body)()),

@@ -60,2 +66,7 @@ __metadata("design:type", Function),

(0, common_1.UseGuards)(jwt_guard_1.JwtGuard),
(0, swagger_1.ApiResponse)({
status: 200,
description: 'Session refreshed',
type: session_response_1.SessionDto,
}),
(0, common_1.Post)('refresh'),

@@ -70,2 +81,7 @@ __param(0, (0, current_user_decorator_1.CurrentUser)()),

(0, common_1.Get)(),
(0, swagger_1.ApiResponse)({
status: 200,
description: 'Session validated',
type: session_response_1.SessionDto,
}),
(0, common_1.UseGuards)(jwt_guard_1.JwtGuard),

@@ -72,0 +88,0 @@ __param(0, (0, current_user_decorator_1.CurrentUser)()),

@@ -5,1 +5,4 @@ export { AuthModule } from './auth.module';

export { CurrentUser } from './utils/decorators/current-user.decorator';
export { UserRepository } from './ports/user.repository';
export { EmailRepository } from './ports/email.repository';
export { PasswordRepository } from './ports/password.repository';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrentUser = exports.JwtGuard = exports.AuthModule = void 0;
exports.PasswordRepository = exports.EmailRepository = exports.UserRepository = exports.CurrentUser = exports.JwtGuard = exports.AuthModule = void 0;
var auth_module_1 = require("./auth.module");

@@ -10,2 +10,8 @@ Object.defineProperty(exports, "AuthModule", { enumerable: true, get: function () { return auth_module_1.AuthModule; } });

Object.defineProperty(exports, "CurrentUser", { enumerable: true, get: function () { return current_user_decorator_1.CurrentUser; } });
var user_repository_1 = require("./ports/user.repository");
Object.defineProperty(exports, "UserRepository", { enumerable: true, get: function () { return user_repository_1.UserRepository; } });
var email_repository_1 = require("./ports/email.repository");
Object.defineProperty(exports, "EmailRepository", { enumerable: true, get: function () { return email_repository_1.EmailRepository; } });
var password_repository_1 = require("./ports/password.repository");
Object.defineProperty(exports, "PasswordRepository", { enumerable: true, get: function () { return password_repository_1.PasswordRepository; } });
//# sourceMappingURL=index.js.map
import { UseCase } from '@fintech-solutions/core';
import { JwtService } from '@nestjs/jwt';
import { UserRepository } from '../ports/user.repository';
import { SessionDto } from 'src/dtos/session.response';
import { Configuration } from 'src/ports/configuration.interface';
import { SessionDto } from '../dtos/session.response';
import { Configuration } from '../ports/configuration.interface';
export declare class SignUpUseCase implements UseCase {

@@ -7,0 +7,0 @@ private userRepository;

@@ -20,3 +20,3 @@ "use strict";

const user_repository_1 = require("../ports/user.repository");
const configuration_interface_1 = require("src/ports/configuration.interface");
const configuration_interface_1 = require("../ports/configuration.interface");
let SignUpUseCase = class SignUpUseCase {

@@ -23,0 +23,0 @@ constructor(userRepository, jwtService, config) {

{
"name": "@fintech-solutions/auth",
"private": false,
"version": "1.2.59",
"version": "1.2.62",
"description": "",

@@ -25,4 +25,4 @@ "main": "dist/index.js",

"dependencies": {
"@fintech-solutions/core": "^1.2.57",
"@fintech-solutions/mailer": "^1.2.57",
"@fintech-solutions/core": "^1.2.62",
"@fintech-solutions/mailer": "^1.2.62",
"@nestjs/jwt": "^10.0.2",

@@ -39,3 +39,3 @@ "argon2": "^0.30.2",

},
"gitHead": "2508227373e1ce89ad3b7b39e6e906b9eb386469"
"gitHead": "1fb052294d7512db12a6d8cfc253bec4c0d65c5a"
}

@@ -76,2 +76,7 @@ import {

@UseGuards(JwtGuard)
@ApiResponse({
status: 200,
description: 'Password updated',
type: SessionDto,
})
async updatePassword(

@@ -78,0 +83,0 @@ @CurrentUser() user: UserModel,

@@ -27,2 +27,7 @@ import {

@Post()
@ApiResponse({
status: 201,
description: 'User created',
type: SessionDto,
})
async signUp(

@@ -29,0 +34,0 @@ @Body() body: SignUpDto

import { Body, Controller, Delete, Get, Post, UseGuards } from '@nestjs/common';
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
import { ApiBearerAuth, ApiResponse, ApiTags } from '@nestjs/swagger';
import { SuccessResponse } from '@fintech-solutions/core';

@@ -22,2 +22,7 @@

@Post()
@ApiResponse({
status: 200,
description: 'Session created',
type: SessionDto,
})
async createSession(

@@ -37,2 +42,7 @@ @Body() body: CreateSessionDto

@UseGuards(JwtGuard)
@ApiResponse({
status: 200,
description: 'Session refreshed',
type: SessionDto,
})
@Post('refresh')

@@ -51,2 +61,7 @@ async refreshSession(

@Get()
@ApiResponse({
status: 200,
description: 'Session validated',
type: SessionDto,
})
@UseGuards(JwtGuard)

@@ -53,0 +68,0 @@ async validateSession(@CurrentUser() user: UserModel): Promise<SuccessResponse<UserModel>> {

@@ -1,4 +0,7 @@

export { AuthModule } from './auth.module'
export { AuthModule } from './auth.module';
export { UserModel } from './domain/user.model';
export { JwtGuard } from './guards/jwt.guard';
export {CurrentUser} from './utils/decorators/current-user.decorator';
export { CurrentUser } from './utils/decorators/current-user.decorator';
export { UserRepository } from './ports/user.repository';
export { EmailRepository } from './ports/email.repository';
export { PasswordRepository } from './ports/password.repository';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet