Xenice Auth
WordPress JWT身份验证插件,在开发小程序、移动 App 或前后端分离的网站时使用
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/xenice/xenice-auth/archive/refs/heads/main.zipReadme
xenice-auth —— 超简单的 WordPress JWT 身份验证插件
xenice-auth 是一款为 WordPress API 场景 设计的轻量级 JWT 身份验证插件,适用于:
- 小程序
- APP
- 前后端分离网站
- 第三方系统对接 WordPress 用户体系
插件网址
https://www.xenice.com/zh/xenice-auth/
登录接口
获取登录参数
GET /xe/v1/login
返回:
{
"client": "客户端ID",
"nonce": "登录nonce"
}
提交登录
POST /xe/v1/login
参数:client, nonce, username, password
返回:
{
"id": "用户ID",
"token": "用户令牌",
"avatar": "用户头像",
"nickname": "用户昵称"
}
注册接口
获取注册参数
GET /xe/v1/register
返回:
{
"client": "客户端ID",
"nonce": "注册nonce"
}
提交注册
POST /xe/v1/register
参数:client, nonce, username, password, email
返回:
{
"id": "用户ID",
"token": "用户令牌",
"avatar": "用户头像",
"nickname": "用户昵称"
}
发送邮箱验证码
POST /xe/v1/send-email-code
参数:client, nonce, email
返回:
- 200:发送成功
- 非 200:发送失败
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.2.3 | Dec 13, 2025 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.