Commit Graph

5 Commits

Author SHA1 Message Date
pezkuwichain 5236f8c470 fix: use session_token for miniapp auth instead of from_miniapp
- loginViaParams now accepts session_token from URL
- Removes insecure from_miniapp parameter
- Aligns with telegram-auth security update
2026-02-06 04:35:12 +03:00
pezkuwichain 549d97b90c fix: use auth_user_id for P2P balance queries 2026-02-03 20:24:55 +03:00
pezkuwichain c6b18b4f11 fix: use Telegram auth user ID instead of Supabase Auth
- Add setCurrentUserId/getCurrentUserId helpers for Telegram-based auth
- Update all p2p-fiat functions to use getCurrentUserId()
- AuthContext sets currentUserId on login/logout
- Fallback to supabase.auth.getUser() for web compatibility

This allows p2p-fiat functions to work with Telegram-only authentication
where users don't have a Supabase Auth session.
2026-02-03 12:25:28 +03:00
pezkuwichain 8add193aa1 feat: mobile-optimized P2P with URL param auth support
- Remove blockchain dependencies (@pezkuwi/api)
- Use internal ledger for P2P trades
- Add URL param authentication from mini-app redirect
- State-based navigation instead of react-router-dom
- Simplified deposit/withdraw modals
2026-01-31 09:38:20 +03:00
pezkuwichain bc7ab9b2a4 Initial P2P mobile frontend
- Copy P2P components from pwap/web
- Mobile-optimized P2P trading interface
- To be deployed at telegram.pezkuwichain.io/p2p
2026-01-31 08:51:45 +03:00