@percepta/create 4.1.13 → 4.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percepta/create",
3
- "version": "4.1.13",
3
+ "version": "4.1.15",
4
4
  "description": "Scaffold a new Mosaic package",
5
5
  "keywords": [
6
6
  "cli",
@@ -48,7 +48,7 @@ const SEEDED_USERS = [
48
48
  ] as const;
49
49
 
50
50
  type AuthMode = "username-password" | "google" | "okta";
51
- type AdminCreateUserApi = {
51
+ interface AdminCreateUserApi {
52
52
  createUser(input: {
53
53
  body: {
54
54
  email: string;
@@ -56,7 +56,7 @@ type AdminCreateUserApi = {
56
56
  password?: string;
57
57
  };
58
58
  }): Promise<{ user: { id: string } }>;
59
- };
59
+ }
60
60
 
61
61
  const DEFAULT_AUTH_MODE: AuthMode = "__AUTH_MODE__" as AuthMode;
62
62
 
@@ -1,12 +1,10 @@
1
- import type { BetterAuthClientOptions } from "better-auth";
2
1
  import { adminClient, genericOAuthClient } from "better-auth/client/plugins";
3
2
  import { createAuthClient } from "better-auth/react";
4
3
 
5
- const adminPlugin: ReturnType<typeof adminClient> = adminClient();
6
- const genericOAuthPlugin: ReturnType<typeof genericOAuthClient> =
7
- genericOAuthClient();
8
- const options = {
9
- plugins: [adminPlugin, genericOAuthPlugin],
10
- } satisfies BetterAuthClientOptions;
11
- export const authClient: ReturnType<typeof createAuthClient<typeof options>> =
12
- createAuthClient(options);
4
+ const authClientOptions = {
5
+ plugins: [adminClient(), genericOAuthClient()],
6
+ };
7
+
8
+ export const authClient: ReturnType<
9
+ typeof createAuthClient<typeof authClientOptions>
10
+ > = createAuthClient(authClientOptions);