diff --git a/content/00.build/30.zksync-sso/25.interfaces.md b/content/00.build/30.zksync-sso/25.interfaces.md index 24231aae..96ff9b72 100644 --- a/content/00.build/30.zksync-sso/25.interfaces.md +++ b/content/00.build/30.zksync-sso/25.interfaces.md @@ -8,11 +8,12 @@ This provides some technical information on how these components can be used. ### Auth Server -The entrypoint to the SDK is via the ``zksyncAccountConnector`` to connect to the *Auth Server*. +The entrypoint to the SDK is via the ``zksyncSsoConnector`` to connect to the *Auth Server*. This takes the auth domain, session, and basic app information (name, icon). The fully expanded type looks like: + ```ts -type ZKsyncAccountConnectorOptions = { +type ZksyncSsoConnectorOptions = { metadata?: { name: string, icon?: string, @@ -26,6 +27,7 @@ type ZKsyncAccountConnectorOptions = { authServerUrl?: string; }; ``` + This returns a [WAGMI connector](https://wagmi.sh/core/api/connectors) that can be used to perform wallet-like actions with the available account. diff --git a/content/00.build/30.zksync-sso/5.getting-started.md b/content/00.build/30.zksync-sso/5.getting-started.md index df0356cf..0f287f98 100644 --- a/content/00.build/30.zksync-sso/5.getting-started.md +++ b/content/00.build/30.zksync-sso/5.getting-started.md @@ -41,9 +41,9 @@ Just 2 steps: ```ts [wagmi] import { zksyncSepoliaTestnet } from "viem/chains"; import { createConfig, connect } from "@wagmi/core"; - import { zksyncAccountConnector } from "zksync-sso/connector"; + import { zksyncSsoConnector } from "zksync-sso/connector"; - const ssoConnector = zksyncAccountConnector({ + const ssoConnector = zksyncSsoConnector({ // Optional session configuration, if omitted user will have to sign every transaction via Auth Server session: { feeLimit: parseEther("0.1"), @@ -96,9 +96,9 @@ Just 2 steps: ```ts [web3modal] import { zksyncSepoliaTestnet } from "viem/chains"; import { defaultWagmiConfig } from "@web3modal/wagmi"; - import { zksyncAccountConnector } from "zksync-sso/connector"; + import { zksyncSsoConnector } from "zksync-sso/connector"; - const ssoConnector = zksyncAccountConnector({ + const ssoConnector = zksyncSsoConnector({ // Optional session configuration, if omitted user will have to sign every transaction via Auth Server session: { feeLimit: parseEther("0.1"),