Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://wfapi.yuhe.space/api/auth/admin-key/session \ --header 'Content-Type: application/json' \ --data ' { "adminKey": "<string>" } '
{ "errCode": 123, "errMessage": "<string>", "data": { "authenticated": true, "principal": { "userId": "<string>", "displayName": "<string>", "email": "jsmith@example.com", "permissions": [], "apiKeyId": "<string>", "roleNames": [ "<string>" ] } } }
用于首个管理员恢复、无账号时的兜底登录以及权限救援。 若同时配置了账号系统,服务端会优先尝试把当前管理员密钥映射为带 builtin_admin 的浏览器会话。
builtin_admin
登录成功并写入 httpOnly cookie。
""
Show child attributes