better-auth 1.0.8-beta.3 → 1.0.8-beta.4

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.
@@ -2,8 +2,8 @@ import * as nanostores from 'nanostores';
2
2
  import { AccessControl, StatementsPrimitive, Role } from '../plugins/access.cjs';
3
3
  import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchOption } from '@better-fetch/fetch';
5
- import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-COXQdrg3.cjs';
6
- export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-COXQdrg3.cjs';
5
+ import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-CGq0G8BS.cjs';
6
+ export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-CGq0G8BS.cjs';
7
7
  import { P as Prettify } from '../helper-DxMBi7M2.cjs';
8
8
  import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-DuzXr0Ie.cjs';
9
9
  import { Store } from '../types.cjs';
@@ -2,8 +2,8 @@ import * as nanostores from 'nanostores';
2
2
  import { AccessControl, StatementsPrimitive, Role } from '../plugins/access.js';
3
3
  import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchOption } from '@better-fetch/fetch';
5
- import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-BqsItHPw.js';
6
- export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-BqsItHPw.js';
5
+ import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-BJnXv4Gt.js';
6
+ export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-BJnXv4Gt.js';
7
7
  import { P as Prettify } from '../helper-DxMBi7M2.js';
8
8
  import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-pJaOH2YO.js';
9
9
  import { Store } from '../types.js';
@@ -3850,6 +3850,12 @@ interface OTPOptions {
3850
3850
  * @default "3 mins"
3851
3851
  */
3852
3852
  period?: number;
3853
+ /**
3854
+ * Number of digits for the OTP code
3855
+ *
3856
+ * @default 6
3857
+ */
3858
+ digits?: number;
3853
3859
  /**
3854
3860
  * Send the otp to the user
3855
3861
  *
@@ -3850,6 +3850,12 @@ interface OTPOptions {
3850
3850
  * @default "3 mins"
3851
3851
  */
3852
3852
  period?: number;
3853
+ /**
3854
+ * Number of digits for the OTP code
3855
+ *
3856
+ * @default 6
3857
+ */
3858
+ digits?: number;
3853
3859
  /**
3854
3860
  * Send the otp to the user
3855
3861
  *