feat: api.

This commit is contained in:
Bobo
2025-05-12 14:02:04 +08:00
parent 8a4eb0c479
commit 3f27534f13
3 changed files with 64 additions and 33 deletions

View File

@@ -12,8 +12,12 @@ 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; // 刷新令牌过期时间
optional string access_token_key_prefix = 5; // 访问令牌键前缀
optional string refresh_token_key_prefix = 6; // 刷新令牌键前缀
}
// 限流器