Skip to content

第三方登录接口文档

1. Github 登录

/**
* @path /oauth/github/login
* @method GET
* @param { code }
*/
const result = {
data: {
token,
email,
mobile,
id,
userType,
avatar,
username,
pagePermissionId,
},
code: 200,
success: true,
message: "SUCCESS",
};

2. Google 登录

/**
* @path /oauth/google/auth
* @method GET
* @param { sessionId }
*/
const result = {
data: {
token,
email,
mobile,
id,
userType,
avatar,
username,
pagePermissionId,
},
code: 200,
success: true,
message: "SUCCESS",
};