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."); } }