We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca01f01 commit 7e17c64Copy full SHA for 7e17c64
1 file changed
nextstep-frontend/src/handlers/githubAuth.ts
@@ -26,7 +26,7 @@ export const connectToGitHub = async (username: string) => {
26
export const initiateGitHubOAuth = () => {
27
const clientId = import.meta.env.VITE_GITHUB_CLIENT_ID; // Use environment variable
28
const redirectUri = import.meta.env.VITE_GITHUB_REDIRECT_URI; // Use environment variable
29
- const scope = 'repo'; // Adjust scope as needed
+ const scope = 'read:repo'; // Only read access to repositories
30
const authUrl = `https://github.com/login/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scope}`;
31
window.location.href = authUrl; // Redirect the user to GitHub's authorization page
32
};
0 commit comments