fix: add access token to responses
All checks were successful
Publish / Publish Job (push) Successful in 2m35s
All checks were successful
Publish / Publish Job (push) Successful in 2m35s
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lendry-erp/contracts",
|
"name": "@lendry-erp/contracts",
|
||||||
"version": "1.0.40",
|
"version": "1.0.41",
|
||||||
"description": "Protobuf definitions and generated TypeScript types",
|
"description": "Protobuf definitions and generated TypeScript types",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -40,9 +40,10 @@ message GetAccountResponse {
|
|||||||
|
|
||||||
message ChangePasswordRequest {
|
message ChangePasswordRequest {
|
||||||
string user_id = 1;
|
string user_id = 1;
|
||||||
string old_password = 2;
|
string access_token = 2;
|
||||||
string new_password = 3;
|
string old_password = 3;
|
||||||
optional string code = 4;
|
string new_password = 4;
|
||||||
|
optional string code = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ChangePasswordResponse {
|
message ChangePasswordResponse {
|
||||||
@@ -53,7 +54,8 @@ message ChangePasswordResponse {
|
|||||||
|
|
||||||
message SetPinRequest {
|
message SetPinRequest {
|
||||||
string user_id = 1;
|
string user_id = 1;
|
||||||
string pin = 2;
|
string access_token = 2;
|
||||||
|
string pin = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SetPinResponse {
|
message SetPinResponse {
|
||||||
@@ -84,6 +86,7 @@ message GetPinStatusResponse {
|
|||||||
message RemovePinRequest {
|
message RemovePinRequest {
|
||||||
string pin = 1;
|
string pin = 1;
|
||||||
string user_id = 2;
|
string user_id = 2;
|
||||||
|
string access_token = 3;
|
||||||
}
|
}
|
||||||
message RemovePinResponse {
|
message RemovePinResponse {
|
||||||
bool success = 1;
|
bool success = 1;
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ message Verify2FaRequest {
|
|||||||
|
|
||||||
message Verify2FaResponse {
|
message Verify2FaResponse {
|
||||||
string access_token = 1;
|
string access_token = 1;
|
||||||
string refresh_token = 2;
|
|
||||||
string status = 3;
|
string status = 3;
|
||||||
string message = 4;
|
string message = 4;
|
||||||
repeated string reserve_codes = 5;
|
repeated string reserve_codes = 5;
|
||||||
|
|||||||
Reference in New Issue
Block a user