From 2f8059f3fb1b47e3ae16d500b509de695bf74bf9 Mon Sep 17 00:00:00 2001 From: Jingles Date: Sat, 31 Jan 2026 19:15:38 +0800 Subject: [PATCH] add email otp --- package.json | 2 +- src/non-custodial/index.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 36ad2f7..23e989f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@utxos/sdk", - "version": "0.1.1", + "version": "0.1.2", "description": "UTXOS SDK - Web3 infrastructure platform for UTXO blockchains", "main": "./dist/index.cjs", "browser": "./dist/index.js", diff --git a/src/non-custodial/index.ts b/src/non-custodial/index.ts index a95f6f2..90320b0 100644 --- a/src/non-custodial/index.ts +++ b/src/non-custodial/index.ts @@ -545,6 +545,9 @@ export class Web3NonCustodialProvider { appleSearchParams.toString(); callback(appleAuthorizeUrl); return; + } else if (provider === "email") { + // Email uses OTP flow, not OAuth - this method should not be called for email + throw new Error("Email provider uses OTP flow. Use the email OTP API endpoints instead."); } }