MCPcopy Index your code
hub / github.com/nextauthjs/next-auth / fetchData

Function fetchData

apps/dev/pages/protected.js:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 useEffect(() => {
13 if (status === "loading") return
14 const fetchData = async () => {
15 const res = await fetch("/api/examples/protected")
16 const json = await res.json()
17 if (json.content) {
18 setContent(json.content)
19 }
20 }
21 fetchData()
22 }, [status])
23

Callers 1

PageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected