Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Dec 26, 2023
1 parent 1463a12 commit 4aceefd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dev/third-party-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async function get(this: Handler) {
SystemModel.get('login-with-github.id'),
TokenModel.add(TokenModel.TYPE_OAUTH, 600, { redirect: this.request.referer }),
]);
// 将用户重定向至第三方平台请求授权。
this.response.redirect = `https://github.com/login/oauth/authorize?client_id=${appid}&state=${state}&scope=read:user,user:email`;
}

Expand Down

0 comments on commit 4aceefd

Please sign in to comment.