<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yitan wang</title>
    <description>The latest articles on DEV Community by yitan wang (@yitan_wang_8931fb96ea4a6e).</description>
    <link>https://dev.to/yitan_wang_8931fb96ea4a6e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4285977%2Ff7608956-2925-4282-b1aa-9035da14751f.png</url>
      <title>DEV Community: yitan wang</title>
      <link>https://dev.to/yitan_wang_8931fb96ea4a6e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yitan_wang_8931fb96ea4a6e"/>
    <language>en</language>
    <item>
      <title>2026 Practical Guide: Offline Browser 2FA (TOTP), AI Subscription Billing Comparison (ChatGPT / Claude / Gemini), and Public Catalog JSON APIs</title>
      <dc:creator>yitan wang</dc:creator>
      <pubDate>Sun, 06 Dec 2026 07:58:58 +0000</pubDate>
      <link>https://dev.to/yitan_wang_8931fb96ea4a6e/2026-practical-guide-offline-browser-2fa-totp-ai-subscription-billing-comparison-chatgpt--dlh</link>
      <guid>https://dev.to/yitan_wang_8931fb96ea4a6e/2026-practical-guide-offline-browser-2fa-totp-ai-subscription-billing-comparison-chatgpt--dlh</guid>
      <description>&lt;p&gt;Managing multiple AI developer subscriptions in 2026 — &lt;strong&gt;ChatGPT Plus / Codex&lt;/strong&gt;, &lt;strong&gt;Claude Pro / API&lt;/strong&gt;, &lt;strong&gt;Gemini Pro / Ultra 20X / Veo3&lt;/strong&gt;, &lt;strong&gt;Grok&lt;/strong&gt;, and &lt;strong&gt;Cursor&lt;/strong&gt; — comes with three practical headaches: cross-border billing friction, secure 2FA (TOTP) management, and comparing transparent pricing across providers.&lt;/p&gt;

&lt;p&gt;Here is a practical engineering and workflow breakdown we put together while building &lt;a href="https://yuantoushop.com" rel="noopener noreferrer"&gt;YuanTouShop&lt;/a&gt; and its companion open guide on &lt;a href="https://github.com/yitanwang60-bot/ChatGPT-Plus-Claude-Gemini-Guide" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Never Paste 2FA Secrets into Server-Side Websites
&lt;/h2&gt;

&lt;p&gt;When enabling 2FA on AI or cloud accounts, many web-based "online 2FA code generators" POST your Base32 secret to a backend server. That is unnecessary and risky: RFC 6238 TOTP only needs HMAC-SHA1 and the current Unix timestamp, both of which run natively inside the browser via the Web Crypto API (&lt;code&gt;crypto.subtle&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;We built and open-hosted a &lt;strong&gt;zero-upload, pure client-side offline TOTP 2FA generator&lt;/strong&gt;:&lt;br&gt;
&lt;strong&gt;&lt;a href="https://yuantoushop.com/2FA.html" rel="noopener noreferrer"&gt;https://yuantoushop.com/2FA.html&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Strips spaces and normalizes Base32 automatically&lt;/li&gt;
&lt;li&gt;Computes the 6-digit code and 30-second countdown locally in your browser&lt;/li&gt;
&lt;li&gt;Works completely offline once loaded — zero network requests leave your machine&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Comparing AI Subscription Access Paths in 2026
&lt;/h2&gt;

&lt;p&gt;For developers outside major card-issuing regions (or teams managing multiple seats), there are four common subscription paths:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;th&gt;Strengths&lt;/th&gt;
&lt;th&gt;Trade-offs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Direct Official Card&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Native billing, full account ownership&lt;/td&gt;
&lt;td&gt;High card decline rate for cross-border cards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;App Store / Play Gift Cards&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Official store billing rail&lt;/td&gt;
&lt;td&gt;Requires foreign store account + gift card markup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Official Direct Top-Up (Own Account)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Keeps your own email &amp;amp; chat history intact&lt;/td&gt;
&lt;td&gt;Check warranty terms and avoid unrealistically cheap gray sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dedicated Pre-Built Account / Family Slot&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Lowest entry cost, instant automated delivery&lt;/td&gt;
&lt;td&gt;Always verify solo vs. shared usage and explicit warranty window&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Live Reference Snapshot (CNY, 24/7 Automated Delivery)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ChatGPT / OpenAI&lt;/strong&gt;: Plus 1-Month Account ¥49 · 30-Day Warrantied Solo ¥60 · Official Direct Top-Up ¥113 · Codex SMS/API options from ¥9.5&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemini / Veo3&lt;/strong&gt;: Gemini Ultra 20X / Veo3 25K Solo Slot ¥538 · Veo3 Ultra 5X ¥198 · Gemini Pro 3-Month Slot ¥168&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude / Anthropic&lt;/strong&gt;: Claude Pro Official Top-Up ¥138 · Claude API $100 Key ¥25&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grok / Cursor / Gmail&lt;/strong&gt;: Grok Premium + Cursor Pro ¥243 · Native Gmail from ¥6.8&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checkout&lt;/strong&gt;: 0% fee &lt;strong&gt;USDT (BEP20 / Polygon / TRC20)&lt;/strong&gt; and &lt;strong&gt;Alipay (2% fee)&lt;/strong&gt; with instant self-service order lookup.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Exposing a Sanitized Read-Only Price Feed Behind Cloudflare WAF
&lt;/h2&gt;

&lt;p&gt;If you run a storefront behind Cloudflare WAF and Caddy with anti-scraper rules blocking &lt;code&gt;python-requests&lt;/code&gt; and &lt;code&gt;curl&lt;/code&gt;, price aggregators (PriceAI, OpenPrice, AIbijia, etc.) cannot index your live catalog cleanly unless you expose a dedicated read-only endpoint.&lt;/p&gt;

&lt;p&gt;Our clean architecture:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep strict WAF + Caddy rules blocking bot UAs on &lt;code&gt;/&lt;/code&gt; and checkout routes (&lt;code&gt;/api/orders*&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Allowlist a dedicated read-only endpoint:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://yuantoushop.com/api/public/catalog
&lt;span class="c"&gt;# Or only currently in-stock SKUs:&lt;/span&gt;
curl -s &lt;span class="s2"&gt;"https://yuantoushop.com/api/public/catalog?inStock=1"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Return a strictly sanitized JSON schema (&lt;code&gt;schema&lt;/code&gt;, &lt;code&gt;shop&lt;/code&gt;, &lt;code&gt;updatedAt&lt;/code&gt;, &lt;code&gt;totalItems&lt;/code&gt;, &lt;code&gt;inStockItems&lt;/code&gt;, &lt;code&gt;items[]&lt;/code&gt; with retail &lt;code&gt;price&lt;/code&gt;, &lt;code&gt;priceCents&lt;/code&gt;, &lt;code&gt;inStock&lt;/code&gt;, &lt;code&gt;stock&lt;/code&gt;, &lt;code&gt;delivery&lt;/code&gt;, &lt;code&gt;warranty&lt;/code&gt;, &lt;code&gt;variants&lt;/code&gt;) cached for 30 seconds (&lt;code&gt;Cache-Control: public, max-age=30&lt;/code&gt;) — stripping all internal cost, wholesale, or supplier fields at serialization time.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Useful Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live Storefront (CN / EN / RU): &lt;a href="https://yuantoushop.com" rel="noopener noreferrer"&gt;https://yuantoushop.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Free Offline Browser 2FA Generator: &lt;a href="https://yuantoushop.com/2FA.html" rel="noopener noreferrer"&gt;https://yuantoushop.com/2FA.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Full Bilingual GitHub Guide: &lt;a href="https://github.com/yitanwang60-bot/ChatGPT-Plus-Claude-Gemini-Guide" rel="noopener noreferrer"&gt;https://github.com/yitanwang60-bot/ChatGPT-Plus-Claude-Gemini-Guide&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Public Live Catalog JSON API: &lt;a href="https://yuantoushop.com/api/public/catalog" rel="noopener noreferrer"&gt;https://yuantoushop.com/api/public/catalog&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>chatgpt</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
