You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`GitHub API authentication failed (401). ${errorData.message||'Bad credentials. Token may be invalid, expired, or missing required scopes.'}`);
thrownewError(`GitHub API authentication failed (401). ${errorData.message||'Bad credentials. Token may be invalid, expired, or missing required scopes.'}`);
2072
2118
}
2073
2119
2074
2120
if(response.status===403){
@@ -2290,6 +2336,13 @@ <h4>Connect With Us</h4>
2290
2336
}
2291
2337
2292
2338
try{
2339
+
// Validate token first
2340
+
console.log("🔍 Validating GitHub token...");
2341
+
consttokenValidation=awaitvalidateToken();
2342
+
if(!tokenValidation.valid){
2343
+
thrownewError(`Token validation failed: ${tokenValidation.error}. Please check your GitHub token has the 'public_repo' scope.`);
2344
+
}
2345
+
2293
2346
console.log("🔄 Fetching fresh data with token...");
0 commit comments