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
@@ -17,152 +17,123 @@ import { GraduationCap } from "lucide-react";
17
17
18
18
exportconst metadata =createMetadata({
19
19
image: {
20
-
title: "thirdweb Auth",
20
+
title: "Sign in with Ethereum",
21
21
icon: "wallets",
22
22
},
23
-
title: "thirdweb Auth",
23
+
title: "Sign in with Ethereum",
24
24
description:
25
-
"Auth allows anyone to integrate passwordless web3-native authentication and authorization into their applications.",
25
+
"Sign in with Ethereum allows anyone to integrate passwordless web3-native authentication and authorization into their applications.",
26
26
});
27
27
28
-
# Overview
28
+
# Sign in with Ethereum
29
29
30
-
Auth allows anyone to integrate passwordless web3-native authentication and authorization into their applications. Users can then **login using any thirdweb wallet** (in-app, browser, or smart wallet).
30
+
Sign in with Ethereum (SIWE) allows anyone to integrate passwordless web3-native authentication and authorization into their applications. Users can then **login using any thirdweb wallet** (in-app, browser, or smart wallet).
31
31
32
32
This allows developers to create a familiar, secure authentication flow that works with traditional backends while leveraging the features of a web3 application.
33
33
34
34
---
35
35
36
-
# Get Started
36
+
<TabsdefaultValue="client">
37
37
38
-
<InstallTabs
39
-
npm="npm i thirdweb"
40
-
yarn="yarn add thirdweb"
41
-
pnpm="pnpm i thirdweb"
42
-
bun="bun i thirdweb"
43
-
/>
38
+
<TabsList>
39
+
<TabsTriggervalue="client">Client</TabsTrigger>
40
+
<TabsTriggervalue="server">Server</TabsTrigger>
41
+
</TabsList>
44
42
45
-
## Get Your Client ID
43
+
<TabsContentvalue="client">
46
44
47
-
To use Auth in your app, you'll need a client ID. You can get one for free on [your thirdweb dashboard](https://thirdweb.com/create-api-key).
45
+
At the root of your React application:
48
46
49
-
## Setting Up Auth
47
+
```tsx
48
+
import { ThirdwebProvider } from"thirdweb/react";
50
49
51
-
<TabsdefaultValue="react">
50
+
exportdefaultfunction App() {
51
+
return <ThirdwebProvider>{/* Your app here */}</ThirdwebProvider>;
### Auth with Smart Accounts (Account Abstraction)
163
-
164
-
When using Auth with a smart account, you **must** specify a client (on `createAuth`) and a chain ID (on `generatePayload`). The smart account is deployed on a specific chain and the payload must reflect that, and the client is needed to call the wallet contract to verify the signature.
0 commit comments