MCPcopy Create free account
hub / github.com/BingyanStudio/github-analyzer / handleGithubLogin

Function handleGithubLogin

web/src/pages/Login.tsx:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12const Login = () => {
13 const handleGithubLogin = () => {
14 const clientId = import.meta.env.VITE_OAUTH_CLIENT_ID;
15 const redirectUri = `${window.location.origin}/callback`;
16 const scope = "user repo";
17
18 window.location.href = `https://github.com/login/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scope}`;
19 };
20
21 return (
22 <div className="flex justify-center items-center min-h-screen bg-gradient-to-b from-background to-background/80">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected