MCPcopy Create free account
hub / github.com/JamesAC42/hanbok / GoogleSignInScript

Function GoogleSignInScript

app/src/components/GoogleSignInScript.jsx:5–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import Script from 'next/script';
4
5export default function GoogleSignInScript() {
6 const { isAuthenticated, loading } = useAuth();
7
8 // Wait until we're done loading; if authenticated, do not render the script.
9 if (loading || isAuthenticated) {
10 return null;
11 }
12
13 return (
14 <Script
15 src="https://accounts.google.com/gsi/client"
16 strategy="afterInteractive"
17 />
18 );
19}

Callers

nothing calls this directly

Calls 1

useAuthFunction · 0.90

Tested by

no test coverage detected