doct-ui-auth-kit 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,7 +104,13 @@ export interface AuthFlowActions {
104
104
  email?: string;
105
105
  countryCode?: string;
106
106
  }) => void;
107
- verifyOtp: (otp: string) => void;
107
+ /**
108
+ * Verifies the OTP against the auth API. Resolves on success (after the
109
+ * reducer has been advanced) and rejects with an `AuthError` whose
110
+ * `message` carries the API's failure reason — callers can surface it
111
+ * as a field-level error.
112
+ */
113
+ verifyOtp: (otp: string) => Promise<void>;
108
114
  resendOtp: () => void;
109
115
  providerCallback: (params: {
110
116
  provider: 'google' | 'apple';
package/package.json CHANGED
@@ -1,15 +1,12 @@
1
1
  {
2
2
  "name": "doct-ui-auth-kit",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Composable React auth SDK – layouts, login/signup/OTP pages, SSO provider, and auth flow hooks for Docthub",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
- "files": [
10
- "dist",
11
- "README.md"
12
- ],
9
+ "files": ["dist", "README.md"],
13
10
  "keywords": [
14
11
  "react",
15
12
  "auth",