From 398e03705d0cb0d23d48a42d3f11b60d7ba5e293 Mon Sep 17 00:00:00 2001 From: Suchitra Swain Date: Fri, 6 Sep 2024 16:49:02 +0200 Subject: [PATCH] Clerk Logout in profile page --- app/(root)/(tabs)/profile.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/(root)/(tabs)/profile.tsx b/app/(root)/(tabs)/profile.tsx index 1ce40e4..7b83225 100644 --- a/app/(root)/(tabs)/profile.tsx +++ b/app/(root)/(tabs)/profile.tsx @@ -62,6 +62,16 @@ const Profile = () => { /> + + { + signOut(); + router.push(`/(auth)/sign-in`); + }} + bgVariant="danger" + /> );