From ceb5e914b2bdb4c0adad40bc0fd9a0fc301af623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Fri, 3 Apr 2026 19:18:19 +0300 Subject: [PATCH] fix: add access token to responses --- package.json | 2 +- proto/account.proto | 11 +++++++---- proto/twofa.proto | 1 - 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index ec875b1..26bd715 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lendry-erp/contracts", - "version": "1.0.40", + "version": "1.0.41", "description": "Protobuf definitions and generated TypeScript types", "type": "commonjs", "main": "./dist/index.js", diff --git a/proto/account.proto b/proto/account.proto index f4a26a9..4c1fac8 100644 --- a/proto/account.proto +++ b/proto/account.proto @@ -40,9 +40,10 @@ message GetAccountResponse { message ChangePasswordRequest { string user_id = 1; - string old_password = 2; - string new_password = 3; - optional string code = 4; + string access_token = 2; + string old_password = 3; + string new_password = 4; + optional string code = 5; } message ChangePasswordResponse { @@ -53,7 +54,8 @@ message ChangePasswordResponse { message SetPinRequest { string user_id = 1; - string pin = 2; + string access_token = 2; + string pin = 3; } message SetPinResponse { @@ -84,6 +86,7 @@ message GetPinStatusResponse { message RemovePinRequest { string pin = 1; string user_id = 2; + string access_token = 3; } message RemovePinResponse { bool success = 1; diff --git a/proto/twofa.proto b/proto/twofa.proto index db95ddc..8fc610f 100644 --- a/proto/twofa.proto +++ b/proto/twofa.proto @@ -24,7 +24,6 @@ message Verify2FaRequest { message Verify2FaResponse { string access_token = 1; - string refresh_token = 2; string status = 3; string message = 4; repeated string reserve_codes = 5;