Add Telegram fallback, change-beneficiary endpoint, x402 USDC payments, and WebAuthn passkeys#6
Draft
Add Telegram fallback, change-beneficiary endpoint, x402 USDC payments, and WebAuthn passkeys#6
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…sskeys Co-authored-by: pyoneerC <131000419+pyoneerC@users.noreply.github.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Copilot
AI
changed the title
[WIP] Add planned additions for contact and payment options
Add Telegram fallback, change-beneficiary endpoint, x402 USDC payments, and WebAuthn passkeys
Feb 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements all five items from the planned additions roadmap: Telegram heartbeat fallback, beneficiary mutation, Gmail SMTP fallback (already present), x402 USDC-on-Base payments, and passkey-based auth replacing cookie-only flow.
Telegram fallback for heartbeats
send_telegram_message(chat_id, message)inservices.pyvia Bot API (TELEGRAM_BOT_TOKEN)telegram_chat_idcolumn onUser; optional field on vault creation formChange beneficiary
POST /vault/change-beneficiary— authenticated by heartbeat token + CSRF, recomputesconfig_hash, notifies owner by emailx402 USDC payments (Base mainnet)
GET /buy/crypto/{plan}— returns HTTP 402 with payment requirements when noX-PAYMENTheader; verifies, settles, and issues auth cookie on valid paymentX402_WALLET_ADDRESSis unsetX402_WALLET_ADDRESS,X402_FACILITATOR_URL,X402_PRICE_ANNUAL,X402_PRICE_LIFETIMEWebAuthn passkeys
Four new endpoints; challenges stored in-memory with 5-minute TTL (single-instance; swap for Redis in multi-instance deployments):
GET /auth/passkey/register-options— requires existingdead_authcookiePOST /auth/passkey/register— verifies and persists credentialGET /auth/passkey/login-options?email=— returns challenge;emailis required to prevent unbounded challenge generationPOST /auth/passkey/login— verifies assertion, issuesdead_authcookieNew columns on
User:passkey_credential_id(unique, indexed),passkey_public_key,passkey_sign_count.Dependencies
webauthnandx402added torequirements.txt.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
us.i.posthog.comimport sys, os
sys.path.insert(0, '.')
os.environ['DATABASE_URL'] = 'sqlite:///./test_passkey.db'
os.environ['SECRET_KEY'] = 'test_secret'
from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app, raise_server_exceptio` (dns block)
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.