MCPcopy Index your code
hub / github.com/cursor/community-plugins / GithubSignin

Function GithubSignin

apps/cursor/src/components/github-signin.tsx:8–32  ·  view source on GitHub ↗
({ redirectTo }: { redirectTo?: string })

Source from the content-addressed store, hash-verified

6import { Button } from "./ui/button";
7
8export function GithubSignin({ redirectTo }: { redirectTo?: string }) {
9 const supabase = createClient();
10 const searchParams = useSearchParams();
11 const next = searchParams.get("next") ?? redirectTo ?? "/";
12
13 return (
14 <Button
15 variant="outline"
16 className="border border-border rounded-full"
17 onClick={() => {
18 supabase.auth.signInWithOAuth({
19 provider: "github",
20 options: {
21 redirectTo: `${window.location.origin}/auth/callback?next=${next}`,
22 },
23 });
24 }}
25 >
26 <span className="flex items-center gap-2">
27 <GithubIcon className="size-4" />
28 Sign in with GitHub
29 </span>
30 </Button>
31 );
32}

Callers

nothing calls this directly

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected