diff --git a/src/pages/profile/ui/ProfilePage.tsx b/src/pages/profile/ui/ProfilePage.tsx index f0a8503..b9b3922 100644 --- a/src/pages/profile/ui/ProfilePage.tsx +++ b/src/pages/profile/ui/ProfilePage.tsx @@ -1,9 +1,19 @@ +import { useEffect } from 'react' import { Button, FormField } from '@shared/ui' import { WalletHeader } from '@widgets/wallet-header' import { ProfileAvatar, ProfileSection } from '@widgets/profile' import styles from './ProfilePage.module.css' export function ProfilePage() { + useEffect(() => { + fetch('https://app.users.elcsa.ru/me', { credentials: 'include' }) + .then(async (res) => { + const data = await res.json().catch(() => null) + console.log('[/me] status:', res.status, 'body:', data) + }) + .catch((err) => console.error('[/me] error:', err)) + }, []) + return (