()
| 11 | |
| 12 | const 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"> |
nothing calls this directly
no outgoing calls
no test coverage detected