gitbook-plugin-auth
v1.0.2
Published
gitbook认证插件
Downloads
2
Readme
Code plugin for GitBook
gitbook登陆拦截插件
How can I use this plugin?
book.json中添加插件
"plugins" : [ "login" ],
"pluginsConfig": {
"login": {
"apiHost": "https://api-test.com", // 请求后台api的域
"checkLoginApi": "/user", // 请求判断是否登陆的url
"loginWebUrl": "https://www.test.com/login" // 登陆的页面路径
}
}
login api response
{
"body": true // body为true登陆成功,false未登陆
}
github location
https://github.com/Hehew/gitbook-plugin-login