feat: add telegram methods
This commit is contained in:
parent
4484fbaa70
commit
1faa14c32f
@ -2,10 +2,15 @@ syntax = "proto3";
|
||||
|
||||
package auth.v1;
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
service AuthService {
|
||||
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
||||
rpc VerifyOtp(VerifyOtpRequest) returns (VerifyOtpResponse);
|
||||
rpc Refresh(RefreshRequest) returns (RefreshResponse);
|
||||
|
||||
rpc TelegramInit(google.protobuf.Empty) returns (TelegramInitResponse);
|
||||
rpc TelegramVerify(TelegramVerifyRequest) returns (TelegramVerifyResponse);
|
||||
}
|
||||
|
||||
message SendOtpRequest {
|
||||
@ -36,3 +41,17 @@ message RefreshResponse {
|
||||
string access_token = 1;
|
||||
string refresh_token = 2;
|
||||
}
|
||||
|
||||
message TelegramInitResponse {
|
||||
string url = 1;
|
||||
}
|
||||
message TelegramVerifyRequest {
|
||||
map<string, string> query = 1;
|
||||
}
|
||||
message TelegramVerifyResponse {
|
||||
oneof result {
|
||||
string url = 1;
|
||||
string access_token = 2;
|
||||
string refresh_token = 3;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user