modify: auth插件拆分,将token签发部分交给网关

This commit is contained in:
2026-09-10 16:44:17 +08:00
parent 8d9c688991
commit 3539c7c18e
8 changed files with 78 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
[POST]
summary = "手机验证码登录:校验验证码并签发平台 token"
docstring = "校验一次性验证码后,按手机号绑定关系 find-or-create 账号,签发与内置登录同契约的平台 token。"
auth_required = false
cacheable = false
params = ["phone: str", "code: str"]
[POST.response_model]
result = { type = "str", required = true }
token = { type = "str", required = true }
message = { type = "str", required = true }
timestamp = { type = "float", required = false }