Skip to content

Commit

Permalink
fix: update auth scope
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <[email protected]>
  • Loading branch information
frank-zsy committed Nov 13, 2024
1 parent 0d0211b commit 03734ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Options/components/GitHubToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const GitHubToken = () => {
const clientId = 'Ov23liyofMsuQYwtfGLb';
const redirectUri = 'http://8.147.129.123/github';
const callback = chrome.identity.getRedirectURL();
const scope = encodeURIComponent('read:user');
const scope = encodeURIComponent('read:user, public_repo');
const authUrl = `https://github.com/login/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scope}&response_type=token&state=${callback}`;

chrome.identity.launchWebAuthFlow(
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Options/components/GiteeToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const GiteeToken = () => {
const handleBindAccount = async () => {
const clientId = 'e76727820aa539f3a59399d0bc48156df2057e81774617e433eeb49d1dad97b3';
const redirectUri = 'http://8.147.129.123/gitee';
const scope = encodeURIComponent('user_info');
const scope = encodeURIComponent('user_info projects pull_requests issues notes');
const callback = chrome.identity.getRedirectURL();
const authUrl = `https://gitee.com/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scope}&response_type=code&state=${callback}`;

Expand Down

0 comments on commit 03734ad

Please sign in to comment.