Skip to content

Commit 628b870

Browse files
committed
docs: add docs on getting user details
1 parent 306e6df commit 628b870

File tree

8 files changed

+320
-31
lines changed

8 files changed

+320
-31
lines changed

apps/portal/src/app/connect/sidebar.tsx

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -134,23 +134,23 @@ export const sidebar: SideBar = {
134134
{
135135
name: "User Management",
136136
links: [
137+
{
138+
name: "Get User Profiles",
139+
href: `${walletSlug}/user-management/get-user-profiles`,
140+
},
137141
{
138142
name: "Export Private Keys",
139-
href: `${inAppSlug}/guides/export-private-key`,
143+
href: `${walletSlug}/user-management/export-private-key`,
140144
},
141145
{
142-
name: "Getting User Details",
143-
href: `${connectSlug}/ConnectButton`,
146+
name: "Link Multiple Identity",
147+
href: `${inAppSlug}/guides/link-multiple-profiles`,
144148
},
145149
// TODO:
146150
// {
147151
// name: "Deleting User Details",
148-
// href: `${connectSlug}/ConnectButton`,
152+
// href: `${walletSlug}/user-management/deleting-user-details`,
149153
// },
150-
{
151-
name: "Link Multiple Identity",
152-
href: `${inAppSlug}/guides/link-multiple-profiles`,
153-
},
154154
],
155155
},
156156
{
@@ -226,23 +226,6 @@ export const sidebar: SideBar = {
226226
name: "In-App Wallet",
227227
icon: <WalletsInAppIcon />,
228228
links: [
229-
{
230-
name: "Guides",
231-
links: [
232-
{
233-
name: "Export Private Keys",
234-
href: `${inAppSlug}/guides/export-private-key`,
235-
},
236-
{
237-
name: "Link Multiple Profiles",
238-
href: `${inAppSlug}/guides/link-multiple-profiles`,
239-
},
240-
{
241-
name: "Retrieving Linked Profiles",
242-
href: `${inAppSlug}/guides/retrieve-linked-profiles`,
243-
},
244-
],
245-
},
246229
{
247230
name: "Custom Authentication",
248231
links: [
@@ -273,10 +256,6 @@ export const sidebar: SideBar = {
273256
},
274257
],
275258
},
276-
{
277-
name: "Backend APIs",
278-
href: `${inAppSlug}/guides/get-user-details`,
279-
},
280259
],
281260
},
282261
// Ecosystem Wallet

apps/portal/src/app/connect/wallet/sign-in-methods/external-wallets/page.mdx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ArticleIconCard, Callout } from "@doc";
1+
import { createMetadata, ArticleIconCard, Callout } from "@doc";
22
import {
33
WalletsAuthIcon,
44
WalletsConnectIcon,
@@ -10,6 +10,17 @@ import {
1010
UnrealEngineIcon
1111
} from "@/icons"
1212

13+
export const metadata = createMetadata({
14+
image: {
15+
title: "External Wallets",
16+
icon: "wallets",
17+
},
18+
title: "External Wallets | thirdweb",
19+
description:
20+
"Learn how to connect and authenticate with external wallets using thirdweb.",
21+
});
22+
23+
1324
# External wallets
1425

1526
thirdweb natively supports 350+ first-party wallets and all wallets that implement EIP-6963 (Multi-injected Provider Discovery). For the full list, please consult [this list](/typescript/v5/supported-wallets).
@@ -30,7 +41,7 @@ Read on to find out how it's done:
3041

3142
External wallets are perfect for applications that want to integrate with existing web3 users. These users typically already have wallets like MetaMask, Coinbase Wallet, or Rainbow installed and are familiar with web3 concepts.
3243

33-
<Callout variant="info" title='Limitations'>
44+
<Callout variant="warning" title='Limitations'>
3445
Your backend will not know about the user's wallet.
3546
This is fine if the user's wallet is used to sign transactions and interact with the blockchain directly.
3647

223 KB
Loading
179 KB
Loading
217 KB
Loading
151 KB
Loading
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import { Callout, DocImage, createMetadata, Step, Steps } from "@doc";
2+
import ManageWallet from './manage-wallet.png'
3+
import ExportKey from './export-key.png'
4+
import ConfirmReveal from './confirm-reveal.png'
5+
import ExportedKey from './exported-key.png'
6+
7+
export const metadata = createMetadata({
8+
image: {
9+
title: "Export private key of thirdweb Wallet",
10+
icon: "wallets",
11+
},
12+
title: "Export private key | thirdweb",
13+
description:
14+
"Learn how to export private keys for thirdweb wallets",
15+
});
16+
17+
# Export Private Key
18+
19+
Learn how to export the private key for a thirdweb wallet using the Connect modal.
20+
21+
<Callout variant="info" title="Headless private key export">
22+
Note that we don't allow exporting private key headlessly today. This is to ensure the security of the users assets.
23+
</Callout>
24+
25+
<Steps>
26+
27+
<Step title="Login">
28+
Login to your wallet on the application.
29+
</Step>
30+
31+
<Step title="Manage">
32+
Select "Manage Wallet".
33+
<DocImage src={ManageWallet} />
34+
</Step>
35+
36+
<Step title="Export">
37+
Choose "Export Private Key" and confirm the action to reveal the private key.
38+
<DocImage src={ExportKey} />
39+
</Step>
40+
41+
<Step title="Confirm">
42+
Confirm you want to reveal your private key.
43+
<Callout variant="warning" title="Secure Private Keys">
44+
Revealing private keys can compromise your assets and security. Keep them safe and confidential at all times.
45+
</Callout>
46+
<DocImage src={ConfirmReveal} />
47+
</Step>
48+
49+
<Step title="Reveal">
50+
Copy the exported private key directly from the modal.
51+
<DocImage src={ExportedKey} />
52+
</Step>
53+
54+
</Steps>
55+
56+
57+
<Callout variant="info" title="Advanced Configuration">
58+
As an advanced option, to hide the export private key option from the modal, set the `hidePrivateKeyOption` to `true` when initializing the typescript or react SDK.
59+
</Callout>

0 commit comments

Comments
 (0)