({ request })
| 22 | }; |
| 23 | |
| 24 | export const loader: LoaderFunction = async ({ request }) => { |
| 25 | const projectId = await getCurrentProjectId(request); |
| 26 | if (projectId) { |
| 27 | const removeProjectIdSession = await clearCurrentProjectId(request); |
| 28 | return redirect(logoutPath(), { |
| 29 | headers: { |
| 30 | "Set-Cookie": await commitCurrentProjectSession(removeProjectIdSession), |
| 31 | }, |
| 32 | }); |
| 33 | } |
| 34 | |
| 35 | return await authenticator.logout(request, { redirectTo: "/" }); |
| 36 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…