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

Function handleLogout

app/pages/email.js:24–30  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

22 }
23
24 const handleLogout = (options) => async (event) => {
25 if (options.redirect) {
26 return signOut(options)
27 }
28 const response = await signOut(options)
29 setResponse(response)
30 }
31
32 const { data: session } = useSession()
33

Callers

nothing calls this directly

Calls 1

signOutFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…