MCPcopy
hub / github.com/nextauthjs/next-auth / fetchUserSession

Function fetchUserSession

src/client/__tests__/session.test.js:83–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 const [session, setSession] = useState(null)
82 useEffect(() => {
83 async function fetchUserSession() {
84 try {
85 const result = await getSession()
86 setSession(result)
87 } catch (e) {
88 console.error(e)
89 }
90 }
91 fetchUserSession()
92 }, [])
93

Callers 1

SessionFlowFunction · 0.85

Calls 1

getSessionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…