summaryrefslogtreecommitdiff
path: root/source/options.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2021-04-08 22:10:15 -0400
committerGravatar GitHub <noreply@github.com> 2021-04-08 22:10:15 -0400
commit4ff98524e61389fb7628e5816bfcdaac4e0f0cc6 (patch)
treedacd4f21ea7286723530350d38cfe27bb846a568 /source/options.tsx
parent8eaad7215a10ab2ffc18bcbf3759a83eb01a49aa (diff)
downloadrefined-github-4ff98524e61389fb7628e5816bfcdaac4e0f0cc6.tar.gz
refined-github-4ff98524e61389fb7628e5816bfcdaac4e0f0cc6.tar.zst
refined-github-4ff98524e61389fb7628e5816bfcdaac4e0f0cc6.zip
Lint (#4207)
Diffstat (limited to '')
-rw-r--r--source/options.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/options.tsx b/source/options.tsx
index 27414276..cb14365d 100644
--- a/source/options.tsx
+++ b/source/options.tsx
@@ -58,6 +58,7 @@ async function getTokenScopes(personalToken: string): Promise<string[]> {
}
const scopes = response.headers.get('X-OAuth-Scopes')!.split(', ');
+ scopes.push('valid_token');
if (scopes.includes('repo')) {
scopes.push('public_repo');
}