Compare commits
2 Commits
7f25daa200
...
86231bad44
| Author | SHA1 | Date | |
|---|---|---|---|
| 86231bad44 | |||
| c4f7674ced |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@teacinema/contracts",
|
"name": "@teacinema/contracts",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"description": "Protocol Buffers contracts for microservices",
|
"description": "Protocol Buffers contracts for microservices",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.build.json",
|
"build": "tsc -p tsconfig.build.json",
|
||||||
|
|||||||
@ -5,6 +5,7 @@ package auth.v1;
|
|||||||
service AuthService {
|
service AuthService {
|
||||||
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
||||||
rpc VerifyOtp(VerifyOtpRequest) returns (VerifyOtpResponse);
|
rpc VerifyOtp(VerifyOtpRequest) returns (VerifyOtpResponse);
|
||||||
|
rpc Refresh(RefreshRequest) returns (RefreshResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message SendOtpRequest {
|
message SendOtpRequest {
|
||||||
@ -27,3 +28,11 @@ message VerifyOtpResponse {
|
|||||||
string access_token = 1;
|
string access_token = 1;
|
||||||
string refresh_token = 2;
|
string refresh_token = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message RefreshRequest {
|
||||||
|
string refresh_token = 1;
|
||||||
|
}
|
||||||
|
message RefreshResponse {
|
||||||
|
string access_token = 1;
|
||||||
|
string refresh_token = 2;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user