Added register
This commit is contained in:
16
apps/hub/app/(auth)/logout/page.tsx
Normal file
16
apps/hub/app/(auth)/logout/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
'use client';
|
||||
import { signOut } from 'next-auth/react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
export default () => {
|
||||
useEffect(() => {
|
||||
signOut({
|
||||
callbackUrl: '/login',
|
||||
});
|
||||
}, []);
|
||||
return (
|
||||
<div>
|
||||
<h1 className="text-5xl">logging out...</h1>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user