Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

logout.tsx

9 lines245 Bytes

1import { createFileRoute } from '@tanstack/react-router';
2import { signOut } from '@workos/authkit-tanstack-react-start';
3​
4export const Route = createFileRoute('/logout')({
5 preload: false,
6 loader: async () => {
7 await signOut();
8 },
9});