mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-06-17 06:41:08 +00:00
feat: unified P2P identity across Telegram mini app and pwap/web
Add p2p_user_id column to tg_users to bridge citizen/visa UUID (v5) used by pwap/web with the Supabase Auth UUID (v4) used by the mini app. - Migration: tg_users.p2p_user_id UUID (nullable, indexed) - 6 P2P edge functions: replace listUsers+find with direct tg_users lookup — resolves userId as p2p_user_id ?? id (backwards compatible) - Eliminates O(N) auth.admin.listUsers scan in every P2P call When p2p_user_id is populated (via TelegramConnect wallet link), mini app users share the same P2P balance and offers as pwap/web.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pezkuwi-telegram-miniapp",
|
||||
"version": "1.0.229",
|
||||
"version": "1.0.230",
|
||||
"type": "module",
|
||||
"description": "Pezkuwichain Telegram Mini App - Forum, Announcements, Rewards",
|
||||
"author": "Pezkuwichain Team",
|
||||
|
||||
Reference in New Issue
Block a user