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.
- package/dist/{auth-hooks-BuniCu20.d.cts → auth-hooks-Kg4U0adj.d.cts} +16 -546
- package/dist/{auth-hooks-BuniCu20.d.ts → auth-hooks-Kg4U0adj.d.ts} +16 -546
- package/dist/{auth-ui-provider-mrVNJ6zj.d.ts → auth-ui-provider-B4nloIHk.d.ts} +1 -1
- package/dist/{auth-ui-provider-D3GrYvcj.d.cts → auth-ui-provider-DndP_Qgj.d.cts} +1 -1
- package/dist/index.cjs +1 -4
- package/dist/index.d.cts +4 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.js +0 -3
- package/dist/instantdb.d.cts +1 -3
- package/dist/instantdb.d.ts +1 -3
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tanstack.d.cts +2 -4
- package/dist/tanstack.d.ts +2 -4
- package/dist/triplit.d.cts +1 -3
- package/dist/triplit.d.ts +1 -3
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/lib/auth-ui-provider.tsx +11 -11
- package/src/types/any-auth-client.ts +3 -1
- package/src/types/auth-client.ts +8 -4
package/dist/tanstack.d.cts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { l as AuthUIProviderProps } from './auth-ui-provider-
|
|
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-
|
|
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
|
|
package/dist/tanstack.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { l as AuthUIProviderProps } from './auth-ui-provider-
|
|
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-
|
|
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
|
|
package/dist/triplit.d.cts
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,
|
|
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,
|
|
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
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
package/src/types/auth-client.ts
CHANGED
|
@@ -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
|
-
|
|
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"]
|