@@ -154,13 +154,52 @@ that the first 32 bytes are provided in hexadecimal format when using the ed2551
154154``` tsx
155155import { JWTLoginParams } from " @web3auth/mpc-core-kit" ;
156156
157- const jwtLoginParams = {
157+ const jwtLoginParams: JWTLoginParams = {
158158 verifier: " YOUR_VERIFIER_NAME" ,
159159 verifierId: " USER'S_VERIFIER_ID" ,
160160 idToken: " USER'S_ID_TOKEN" ,
161161 // focus-next-line
162162 importTssKey: " SECP256K1_PRIVATE_KEY_OR_ED25519_SEED" ,
163- } as JWTLoginParams ;
163+ };
164+
165+ await coreKitInstance .loginWithJWT (jwtLoginParams );
166+ ```
167+
168+ ## Importing an existing Single Factor Auth(SFA) Key.
169+
170+ When logging in for the first time, you can import an existing SFA key using the
171+ ` registerExistingSFAKey ` parameter. By default, the value of this parameter is ` false ` .
172+
173+ Additionally, this parameter allows you to leverage the
174+ [ wallet pregeneration API] ( /docs/features/wallet-pregeneration ) to pre-generate a wallet address.
175+ This approach enhances the user experience by enabling the creation of a wallet without requiring
176+ end users to initiate or complete an authentication flow.
177+
178+ To use this feature, you need to make sure that you are using the same ` verifier ` for both the SFA
179+ SDK/ Wallet Pregeneration API and MPC Core Kit SDK.
180+
181+ :::info
182+
183+ Please keep the following points in mind when using this feature:
184+
185+ 1 . Once the SFA Key is imported, users will no longer be able to access their account through the
186+ SFA SDK.
187+ 2 . SFA import is available exclusively for Web3Auth SFA v2 users and is not compatible with older
188+ users (v1) of SFA.
189+
190+ :::
191+
192+ ``` tsx
193+ import { JWTLoginParams } from " @web3auth/mpc-core-kit" ;
194+
195+ const jwtLoginParams: JWTLoginParams = {
196+ // Please make sure to use the same verifier of the SFA/ Wallet Pregeneration API
197+ verifier: " YOUR_VERIFIER_NAME" ,
198+ verifierId: " USER'S_VERIFIER_ID" ,
199+ idToken: " USER'S_ID_TOKEN" ,
200+ // focus-next-line
201+ registerExistingSFAKey: true ,
202+ };
164203
165204await coreKitInstance .loginWithJWT (jwtLoginParams );
166205```
0 commit comments