feat: implement JWT token provider with access and refresh token generation
This commit is contained in:
46
proto/v1/common.proto
Normal file
46
proto/v1/common.proto
Normal file
@@ -0,0 +1,46 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package stream.common.v1;
|
||||
|
||||
option go_package = "stream/proto/gen/go/common/v1;commonv1";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message RequestContext {
|
||||
string user_id = 1;
|
||||
string email = 2;
|
||||
string role = 3;
|
||||
string request_id = 4;
|
||||
string source = 5;
|
||||
}
|
||||
|
||||
message PaginationRequest {
|
||||
int32 page = 1;
|
||||
int32 page_size = 2;
|
||||
}
|
||||
|
||||
message PaginationResponse {
|
||||
int32 page = 1;
|
||||
int32 page_size = 2;
|
||||
int64 total = 3;
|
||||
}
|
||||
|
||||
message Money {
|
||||
double amount = 1;
|
||||
string currency = 2;
|
||||
}
|
||||
|
||||
message Empty {}
|
||||
|
||||
message IdRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message DeleteResponse {
|
||||
string message = 1;
|
||||
}
|
||||
|
||||
message TimestampRange {
|
||||
google.protobuf.Timestamp from = 1;
|
||||
google.protobuf.Timestamp to = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user