feat: api.

This commit is contained in:
Bobo
2025-05-12 14:00:08 +08:00
parent 0b7e6265f4
commit 8a4eb0c479
3 changed files with 71 additions and 35 deletions

View File

@@ -12,6 +12,8 @@ message Middleware {
message Auth {
string method = 1; // JWT签名的算法支持算法HS256
string key = 2; // JWT 秘钥
optional google.protobuf.Duration access_token_expires = 3; // 访问令牌过期时间
optional google.protobuf.Duration refresh_token_expires = 4; // 刷新令牌过期时间
}
// 限流器