feat: log out and auth redirect

This commit is contained in:
2025-09-14 23:23:15 +00:00
parent 65cac6f97b
commit f06064fc81
4 changed files with 90 additions and 13 deletions

View File

@@ -1,9 +1,13 @@
import { createFileRoute } from "@tanstack/react-router"
import { useAuth } from "@workos-inc/authkit-react"
import { Button } from "../components/ui/button"
export const Route = createFileRoute("/login")({
component: RouteComponent,
})
function RouteComponent() {
return <div>Hello "/login"!</div>
const { signIn } = useAuth()
return <Button onClick={() => signIn()}>Login</Button>
}