Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit b37749d

Browse files
committed
add warning
1 parent 7d88d3e commit b37749d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/github.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export function getOAuthUrl() {
4646
url.searchParams.set('client_id', process.env.GITHUB_CLIENT_ID);
4747
url.searchParams.set('redirect_uri', process.env.GITHUB_REDIRECT_URI);
4848
url.searchParams.set('state', state);
49-
url.searchParams.set('response_type', 'code');
5049
url.searchParams.set(
5150
'scope',
5251
'read:user'
@@ -76,6 +75,11 @@ export async function getOAuthTokens(code: string) {
7675
return r.data;
7776
}
7877

78+
// ################################################################
79+
// CODE BELOW THIS POINT NEEDS TO BE CHANGED TO WORK WITH GITHUB
80+
// ################################################################
81+
82+
7983
/**
8084
* The initial token request comes with both an access token and a refresh
8185
* token. Check if the access token has expired, and if it has, use the

0 commit comments

Comments
 (0)