You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,7 +40,7 @@ const targetAddress = "0x..."; // Replace with your target address
39
40
40
41
## Step 1: Configure User Smart Wallet with Session Key
41
42
42
-
The first step is to add our session key address as a signer to the user's smart account. This can be done by configuring the smart wallet with the session key address and permissions.
43
+
The first step is to add our session key address as a signer to the user's smart account. This is typically done on the client side since it needs explicit user approval. This can be done by configuring the smart wallet with the session key address and permissions.
43
44
44
45
In a React application, this can be done by using the `ConnectButton` or `ConnectEmbed` component. This will automatically configure the smart wallet with the session key address and permissions.
45
46
@@ -49,6 +50,10 @@ In a React application, this can be done by using the `ConnectButton` or `Connec
49
50
chain: sepolia,
50
51
sessionKey: {
51
52
address: sessionKeyAccountAddress,
53
+
permissions: {
54
+
// "*" allows all targets, or specify specific contract addresses
0 commit comments