Migrate to local PG & Update Solana Checkout
This commit is contained in:
@@ -28,10 +28,8 @@ export default function AdminLayout({
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
const router = useRouter();
|
||||
const supabase = createClient();
|
||||
|
||||
const handleSignOut = async () => {
|
||||
await supabase.auth.signOut();
|
||||
await fetch('/api/auth/logout', { method: 'POST' });
|
||||
router.push('/login');
|
||||
router.refresh();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user