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
Copy file name to clipboardExpand all lines: apps/portal/src/app/engine/v3/guides/session-keys/page.mdx
+30-14Lines changed: 30 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,23 +37,35 @@ const sessionKeyAccountAddress = "0x..."; // Replace with your session key addre
37
37
const targetAddress ="0x..."; // Replace with your target address
38
38
```
39
39
40
-
## Step 1: Create a Personal Account
40
+
## Step 1: Configure User Smart Wallet with Session Key
41
41
42
-
Generate a personal account that will be used to create the smart wallet:
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
43
44
-
```typescript
45
-
const personalAccount =awaitgenerateAccount({
46
-
client: client,
47
-
});
44
+
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.
0 commit comments