From 434f74756f331349ec8206e794879a6afcd7c7f8 Mon Sep 17 00:00:00 2001 From: hossein_225 Date: Mon, 9 Dec 2024 14:25:50 +0330 Subject: [PATCH] add enum for TFA message --- auth/v1/msg.proto | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/auth/v1/msg.proto b/auth/v1/msg.proto index d09aeac..15112bf 100644 --- a/auth/v1/msg.proto +++ b/auth/v1/msg.proto @@ -210,7 +210,13 @@ message CheckTFAReq { } message TFA { - string key = 1; + OtpStateEnum state = 1; int64 code = 2; string transaction_id = 3; +} + +enum OtpStateEnum { + OPT_STATE_ENUM_UNSPECIFIED = 0; + LOGIN = 1; + PAYMENT = 2; } \ No newline at end of file -- 2.47.2