Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 36 additions & 35 deletions apps/playground-web/src/app/connect/in-app-wallet/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,43 +41,44 @@ function UIIntegration() {
return (
<div>
<CodeExample
code={`import { inAppWallet } from "thirdweb/wallets";
import { ConnectEmbed } from "thirdweb/react";
code={`\
import { inAppWallet } from "thirdweb/wallets";
import { ConnectEmbed } from "thirdweb/react";

const wallets = [
inAppWallet(
// built-in auth methods
// or bring your own auth endpoint
{ auth: {
options: [
"google",
"x",
"apple",
"discord",
"facebook",
"farcaster",
"telegram",
"coinbase",
"line",
"email",
"phone",
"passkey",
"guest",
]
}
},
// optional execution mode, defaults to "EOA"
executionMode: {
mode: "EIP7702", // or "EIP4337" or "EOA"
sponsorGas: true, // sponsor gas for all transactions
}
)
];
const wallets = [
inAppWallet(
// built-in auth methods
// or bring your own auth endpoint
{
auth: {
options: [
"google",
"x",
"apple",
"discord",
"facebook",
"farcaster",
"telegram",
"coinbase",
"line",
"email",
"phone",
"passkey",
"guest",
],
},
// optional execution mode, defaults to "EOA"
executionMode: {
mode: "EIP7702", // or "EIP4337" or "EOA"
sponsorGas: true, // sponsor gas for all transactions
},
},
),
];

function App(){
return (
<ConnectEmbed client={client} wallets={wallets} />);
};`}
function App() {
return <ConnectEmbed client={client} wallets={wallets} />;
}`}
header={{
description:
"Instant out of the box authentication with a prebuilt UI.",
Expand Down
Loading