mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-22 11:45:06 +02:00
router refresh on logout
This commit is contained in:
parent
82192fa180
commit
a2bf3ba7e7
2 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ export default async function AuthLayout({ children }: AuthLayoutProps) {
|
|||
<>
|
||||
{user && (
|
||||
<UserProvider user={user}>
|
||||
<div>
|
||||
<div className="p-3">
|
||||
<ProfileIcon />
|
||||
</div>
|
||||
</UserProvider>
|
||||
|
|
|
@ -57,6 +57,7 @@ export default function ProfileIcon() {
|
|||
})
|
||||
.then(() => {
|
||||
router.push("/auth/login");
|
||||
router.refresh();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue