Skip to content

Commit 3abbf7c

Browse files
committed
docs: add doc string
1 parent b5e890f commit 3abbf7c

File tree

1 file changed

+16
-0
lines changed
  • packages/thirdweb/src/wallets/in-app/web

1 file changed

+16
-0
lines changed

packages/thirdweb/src/wallets/in-app/web/in-app.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,22 @@ import type { InAppWalletCreationOptions } from "../core/wallet/types.js";
297297
* });
298298
* ```
299299
*
300+
* ### Set the default value for the email and phone auth options
301+
*
302+
* By default,the email and phone auth options will be empty. You can change this behavior by passing the auth option for phone or email as an object with the `defaultValue` property.
303+
*
304+
* ```ts
305+
* import { inAppWallet } from "thirdweb/wallets";
306+
* const wallet = inAppWallet({
307+
* auth: {
308+
* options: [
309+
* { type: "email", defaultValue: "test@test.com" },
310+
* { type: "phone", defaultValue: "+5555555555" },
311+
* ]
312+
* }
313+
* });
314+
* ```
315+
*
300316
* @returns The created in-app wallet.
301317
* @wallet
302318
*/

0 commit comments

Comments
 (0)