feat: add refresh method
This commit is contained in:
parent
7f25daa200
commit
c4f7674ced
@ -5,6 +5,7 @@ package auth.v1;
|
||||
service AuthService {
|
||||
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
||||
rpc VerifyOtp(VerifyOtpRequest) returns (VerifyOtpResponse);
|
||||
rpc Refresh(RefreshRequest) returns (RefreshResponse);
|
||||
}
|
||||
|
||||
message SendOtpRequest {
|
||||
@ -27,3 +28,11 @@ message VerifyOtpResponse {
|
||||
string access_token = 1;
|
||||
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