@krak-stack/auth 0.1.51 → 0.1.53

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.
@@ -10,6 +10,20 @@ const additionalFields = {
10
10
  },
11
11
  },
12
12
  };
13
+ const organizationSchema = {
14
+ organization: {
15
+ additionalFields: {
16
+ userId: {
17
+ type: "string",
18
+ required: false,
19
+ },
20
+ parentId: {
21
+ type: "string",
22
+ required: false,
23
+ },
24
+ },
25
+ },
26
+ };
13
27
  const authUiClientPlugins = [
14
28
  inferAdditionalFields(additionalFields),
15
29
  adminClient(),
@@ -18,7 +32,7 @@ const authUiClientPlugins = [
18
32
  lastLoginMethodClient({
19
33
  cookieName: "krakstack-auth.last_used_login_method",
20
34
  }),
21
- organizationClient(),
35
+ organizationClient({ schema: organizationSchema }),
22
36
  twoFactorClient(),
23
37
  apiKeyClient(),
24
38
  genericOAuthClient(),
@@ -7,6 +7,7 @@ type AuthFormProps = {
7
7
  };
8
8
  export declare function Signin(props: AuthFormProps): import("react").JSX.Element;
9
9
  export declare function Signup(props: AuthFormProps): import("react").JSX.Element;
10
+ export declare function VerifyEmail(props: AuthFormProps): import("react").JSX.Element;
10
11
  export declare function ResetPassword(props: AuthFormProps): import("react").JSX.Element;
11
12
  export declare function TwoFactor(props: AuthFormProps): import("react").JSX.Element;
12
13
  export {};