router refresh on logout

This commit is contained in:
Milo Schwartz
2025-01-11 15:10:02 -05:00
parent 82192fa180
commit a2bf3ba7e7
2 changed files with 2 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ export default async function AuthLayout({ children }: AuthLayoutProps) {
<> <>
{user && ( {user && (
<UserProvider user={user}> <UserProvider user={user}>
<div> <div className="p-3">
<ProfileIcon /> <ProfileIcon />
</div> </div>
</UserProvider> </UserProvider>

View File

@@ -57,6 +57,7 @@ export default function ProfileIcon() {
}) })
.then(() => { .then(() => {
router.push("/auth/login"); router.push("/auth/login");
router.refresh();
}); });
} }