contracts/proto/auth.proto
Sergey Krylov fa73b7d5c6
All checks were successful
Publish / Publish npm package action (push) Successful in 17s
feat: add verify to auth proto
2026-01-24 15:00:48 +03:00

30 lines
478 B
Protocol Buffer

syntax = "proto3";
package auth.v1;
service AuthService {
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
rpc VerifyOtp(VerifyOtpRequest) returns (VerifyOtpResponse);
}
message SendOtpRequest {
string identifier = 1;
string type = 2;
}
message SendOtpResponse {
bool ok = 1;
}
message VerifyOtpRequest {
string identifier = 1;
string type = 2;
string code = 3;
}
message VerifyOtpResponse {
string access_token = 1;
string refresh_token = 2;
}