better-auth-ui 3.2.23 → 3.2.25

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.
@@ -1,15 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { l as AuthUIProviderProps } from './auth-ui-provider-D3GrYvcj.cjs';
2
+ import { l as AuthUIProviderProps } from './auth-ui-provider-DndP_Qgj.cjs';
3
3
  import 'react';
4
4
  import './view-paths-CIL7NXLh.cjs';
5
- import './auth-hooks-BuniCu20.cjs';
5
+ import './auth-hooks-Kg4U0adj.cjs';
6
6
  import '@better-fetch/fetch';
7
7
  import 'better-auth';
8
8
  import 'better-auth/plugins/organization';
9
9
  import 'better-auth/react';
10
- import 'inspector';
11
10
  import 'better-auth/client/plugins';
12
- import 'better-auth/plugins/passkey';
13
11
  import './auth-mutators-DdqOmQ32.cjs';
14
12
  import 'better-auth/social-providers';
15
13
 
@@ -1,15 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { l as AuthUIProviderProps } from './auth-ui-provider-mrVNJ6zj.js';
2
+ import { l as AuthUIProviderProps } from './auth-ui-provider-B4nloIHk.js';
3
3
  import 'react';
4
4
  import './view-paths-CIL7NXLh.js';
5
- import './auth-hooks-BuniCu20.js';
5
+ import './auth-hooks-Kg4U0adj.js';
6
6
  import '@better-fetch/fetch';
7
7
  import 'better-auth';
8
8
  import 'better-auth/plugins/organization';
9
9
  import 'better-auth/react';
10
- import 'inspector';
11
10
  import 'better-auth/client/plugins';
12
- import 'better-auth/plugins/passkey';
13
11
  import './auth-mutators-DdqOmQ32.js';
14
12
  import 'better-auth/social-providers';
15
13
 
@@ -1,12 +1,10 @@
1
1
  import { TriplitClient } from '@triplit/client';
2
2
  import { User } from 'better-auth';
3
- import { S as Session, R as Refetch, c as AuthHooks } from './auth-hooks-BuniCu20.cjs';
3
+ import { S as Session, R as Refetch, b as AuthHooks } from './auth-hooks-Kg4U0adj.cjs';
4
4
  import '@better-fetch/fetch';
5
5
  import 'better-auth/plugins/organization';
6
6
  import 'better-auth/react';
7
- import 'inspector';
8
7
  import 'better-auth/client/plugins';
9
- import 'better-auth/plugins/passkey';
10
8
 
11
9
  declare const namespaces: readonly ["user", "session", "account", "passkey"];
12
10
  type Namespace = (typeof namespaces)[number];
package/dist/triplit.d.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  import { TriplitClient } from '@triplit/client';
2
2
  import { User } from 'better-auth';
3
- import { S as Session, R as Refetch, c as AuthHooks } from './auth-hooks-BuniCu20.js';
3
+ import { S as Session, R as Refetch, b as AuthHooks } from './auth-hooks-Kg4U0adj.js';
4
4
  import '@better-fetch/fetch';
5
5
  import 'better-auth/plugins/organization';
6
6
  import 'better-auth/react';
7
- import 'inspector';
8
7
  import 'better-auth/client/plugins';
9
- import 'better-auth/plugins/passkey';
10
8
 
11
9
  declare const namespaces: readonly ["user", "session", "account", "passkey"];
12
10
  type Namespace = (typeof namespaces)[number];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "better-auth-ui",
3
3
  "homepage": "https://stackproviders.github.io/better-auth-ui/",
4
- "version": "3.2.23",
4
+ "version": "3.2.25",
5
5
  "description": "Plug & play shadcn/ui components for better-auth",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
package/src/index.ts CHANGED
@@ -78,6 +78,7 @@ export * from "./types/credentials-options"
78
78
  export * from "./types/delete-user-options"
79
79
  export * from "./types/generic-oauth-options"
80
80
  export * from "./types/gravatar-options"
81
+ export * from "./types/invitation"
81
82
  export * from "./types/link"
82
83
  export * from "./types/organization-options"
83
84
  export * from "./types/password-validation"
@@ -72,17 +72,17 @@ export type AuthUIContextType = {
72
72
  * API Key plugin configuration
73
73
  */
74
74
  apiKey?:
75
- | {
76
- /**
77
- * Prefix for API Keys
78
- */
79
- prefix?: string
80
- /**
81
- * Metadata for API Keys
82
- */
83
- metadata?: Record<string, unknown>
84
- }
85
- | boolean
75
+ | {
76
+ /**
77
+ * Prefix for API Keys
78
+ */
79
+ prefix?: string
80
+ /**
81
+ * Metadata for API Keys
82
+ */
83
+ metadata?: Record<string, unknown>
84
+ }
85
+ | boolean
86
86
  /**
87
87
  * Avatar configuration
88
88
  * @default undefined
@@ -3,4 +3,6 @@ import type { createAuthClient } from "better-auth/react"
3
3
  export type AnyAuthClient = Omit<
4
4
  ReturnType<typeof createAuthClient>,
5
5
  "signUp" | "getSession"
6
- >
6
+ > & {
7
+ [key: string]: any;
8
+ }
@@ -7,17 +7,15 @@ import {
7
7
  multiSessionClient,
8
8
  oneTapClient,
9
9
  organizationClient,
10
- passkeyClient,
11
10
  twoFactorClient,
12
11
  usernameClient
13
12
  } from "better-auth/client/plugins"
14
13
  import { createAuthClient } from "better-auth/react"
15
14
 
16
- export const authClient = createAuthClient({
15
+ const authClient = createAuthClient({
17
16
  plugins: [
18
17
  apiKeyClient(),
19
18
  multiSessionClient(),
20
- passkeyClient(),
21
19
  oneTapClient({
22
20
  clientId: ""
23
21
  }),
@@ -31,7 +29,13 @@ export const authClient = createAuthClient({
31
29
  ]
32
30
  })
33
31
 
34
- export type AuthClient = typeof authClient
32
+ export type AuthClient = typeof authClient & {
33
+ passkey: {
34
+ addPasskey: (opts?: any) => Promise<any>;
35
+ deletePasskey: (opts?: any) => Promise<any>;
36
+ };
37
+ useListPasskeys: () => { data?: any[]; isPending?: boolean; refetch?: () => void };
38
+ }
35
39
 
36
40
  export type Session = AuthClient["$Infer"]["Session"]["session"]
37
41
  export type User = AuthClient["$Infer"]["Session"]["user"]