Alchemy Logo

AlchemySignerParamsSchema

const AlchemySignerParamsSchema: ZodObject<
  object & object,
  "strip",
  ZodTypeAny,
  {
    client:
      | AlchemySignerWebClient
      | {
          connection:
            | {
                apiKey: string;
                jwt?: undefined;
                rpcUrl?: undefined;
              }
            | {
                apiKey?: undefined;
                jwt: string;
                rpcUrl?: undefined;
              }
            | {
                apiKey?: undefined;
                jwt?: undefined;
                rpcUrl: string;
              }
            | ({
                apiKey?: undefined;
                jwt: string;
                rpcUrl: string;
              } & object);
          enablePopupOauth: boolean;
          iframeConfig: {
            iframeContainerId: string;
            iframeElementId: string;
          };
          oauthCallbackUrl: string;
          rootOrgId: string;
          rpId?: string;
        };
    sessionConfig?: {
      expirationTimeMs: number;
      sessionKey: string;
      storage: "localStorage" | "sessionStorage" | Storage;
    };
  },
  {
    client:
      | AlchemySignerWebClient
      | {
          connection:
            | {
                apiKey: string;
                jwt?: undefined;
                rpcUrl?: undefined;
              }
            | {
                apiKey?: undefined;
                jwt: string;
                rpcUrl?: undefined;
              }
            | {
                apiKey?: undefined;
                jwt?: undefined;
                rpcUrl: string;
              }
            | ({
                apiKey?: undefined;
                jwt: string;
                rpcUrl: string;
              } & object);
          enablePopupOauth?: boolean;
          iframeConfig: {
            iframeContainerId: string;
            iframeElementId?: string;
          };
          oauthCallbackUrl?: string;
          rootOrgId?: string;
          rpId?: string;
        };
    sessionConfig?: {
      expirationTimeMs?: number;
      sessionKey?: string;
      storage?: "localStorage" | "sessionStorage" | Storage;
    };
  }
>;

Defined in: account-kit/signer/src/signer.ts:105

Was this page helpful?