Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Add signout button on onboarding screen (#15807)

NitinPSingh9e3f8a2dc016
diff --git a/apps/web/pages/getting-started/[[...step]].tsx b/apps/web/pages/getting-started/[[...step]].tsx
index 58523db50c4..46dbe1e4132 100644
--- a/apps/web/pages/getting-started/[[...step]].tsx
+++ b/apps/web/pages/getting-started/[[...step]].tsx
@@ -1,5 +1,6 @@
"use client";
+import { signOut } from "next-auth/react";
import Head from "next/head";
import { usePathname, useRouter } from "next/navigation";
import { Suspense } from "react";
@@ -172,6 +173,15 @@ const OnboardingPage = () => {
</div>
)}
</div>
+ <div className="flex w-full flex-row justify-center">
+ <Button
+ color="minimal"
+ data-testid="sign-out"
+ onClick={() => signOut({ callbackUrl: "/auth/logout" })}
+ className="mt-8 cursor-pointer px-4 py-2 font-sans text-sm font-medium">
+ {t("sign_out")}
+ </Button>
+ </div>
</div>
</div>
</div>