Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit bda59e4

Browse files
authored
Update domain to example.com (#108)
1 parent 027f01d commit bda59e4

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

docs/docs/snippets.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,30 +413,30 @@
413413
"WalletAuthenticator": {
414414
"name": "WalletAuthenticator",
415415
"summary": "> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment. >",
416-
"example": "# We specify the domain of the application to authenticate to\ndomain = \"thirdweb.com\"\n\n# We can then generate a payload for the connected wallet to login\n# This can also be done on the client side with the thirdweb TypeScript SDK\npayload = sdk.auth.login(domain)\n\n# Then, on the server, we can securely verify the connected address that signed the payload\naddress = sdk.auth.verify(domain, payload)\n\n# And we can also generate an authentication token to send back to the original payload sender\ntoken = sdk.auth.generate_auth_token(domain, payload)\n\n# Finally, the token can be use dby the original payload sender to authenticate to the backend\n# And the server can use the following function to authenticate the token and verify the address\naddress = sdk.auth.authenticate(domain, token)",
416+
"example": "# We specify the domain of the application to authenticate to\ndomain = \"example.com\"\n\n# We can then generate a payload for the connected wallet to login\n# This can also be done on the client side with the thirdweb TypeScript SDK\npayload = sdk.auth.login(domain)\n\n# Then, on the server, we can securely verify the connected address that signed the payload\naddress = sdk.auth.verify(domain, payload)\n\n# And we can also generate an authentication token to send back to the original payload sender\ntoken = sdk.auth.generate_auth_token(domain, payload)\n\n# Finally, the token can be use dby the original payload sender to authenticate to the backend\n# And the server can use the following function to authenticate the token and verify the address\naddress = sdk.auth.authenticate(domain, token)",
417417
"methods": [
418418
{
419419
"name": "authenticate",
420420
"summary": "Server-side function that authenticates the provided JWT token. This function verifies that the provided authentication token is valid and returns the address of the authenticated wallet.",
421-
"example": "domain = \"thirdweb.com\"\npayload = sdk.auth.login(domain)\ntoken = sdk.auth.generate_auth_token(domain, payload)\n\n# Authenticate the token and get the address of the authenticating wallet\naddress = sdk.auth.authenticate(domain, token)",
421+
"example": "domain = \"example.com\"\npayload = sdk.auth.login(domain)\ntoken = sdk.auth.generate_auth_token(domain, payload)\n\n# Authenticate the token and get the address of the authenticating wallet\naddress = sdk.auth.authenticate(domain, token)",
422422
"reference": "https://docs.thirdweb.com/python/wallet-authenticator#authenticate"
423423
},
424424
{
425425
"name": "generate_auth_token",
426426
"summary": "Server-side function that generates a JWT token from the provided login request that the client-side wallet can use to authenticate to the server-side application.",
427-
"example": "domain = \"thirdweb.com\"\npayload = sdk.auth.login(domain)\n\n# Generate an authentication token for the logged in wallet\ntoken = sdk.auth.generate_auth_token(domain, payload)",
427+
"example": "domain = \"example.com\"\npayload = sdk.auth.login(domain)\n\n# Generate an authentication token for the logged in wallet\ntoken = sdk.auth.generate_auth_token(domain, payload)",
428428
"reference": "https://docs.thirdweb.com/python/wallet-authenticator#generate_auth_token"
429429
},
430430
{
431431
"name": "login",
432432
"summary": "Client-side function that allows the connected wallet to login to a server-side application. Generates a login payload that can be sent to the server-side for verification or authentication.",
433-
"example": "# Add the domain of the application that you want to log in to\ndomain = \"thirdweb.com\"\n\n# Generate a signed login payload for the connected wallet to authenticate with\npayload = sdk.auth.login(domain)",
433+
"example": "# Add the domain of the application that you want to log in to\ndomain = \"example.com\"\n\n# Generate a signed login payload for the connected wallet to authenticate with\npayload = sdk.auth.login(domain)",
434434
"reference": "https://docs.thirdweb.com/python/wallet-authenticator#login"
435435
},
436436
{
437437
"name": "verify",
438438
"summary": "Server-side function to securely verify the address of the logged in client-side wallet by validating the provided client-side login request.",
439-
"example": "domain = \"thirdweb.com\"\npayload = sdk.auth.login(domain)\n\n# Verify the login request\naddress = sdk.auth.verify(domain, payload)",
439+
"example": "domain = \"example.com\"\npayload = sdk.auth.login(domain)\n\n# Verify the login request\naddress = sdk.auth.verify(domain, payload)",
440440
"reference": "https://docs.thirdweb.com/python/wallet-authenticator#verify"
441441
}
442442
],

docs/docs/wallet-authenticator.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ standard.
2020

2121
```python
2222
# We specify the domain of the application to authenticate to
23-
domain = "thirdweb.com"
23+
domain = "example.com"
2424

2525
# We can then generate a payload for the connected wallet to login
2626
# This can also be done on the client side with the thirdweb TypeScript SDK
@@ -51,7 +51,7 @@ Generates a login payload that can be sent to the server-side for verification o
5151

5252
```python
5353
# Add the domain of the application that you want to log in to
54-
domain = "thirdweb.com"
54+
domain = "example.com"
5555

5656
# Generate a signed login payload for the connected wallet to authenticate with
5757
payload = sdk.auth.login(domain)
@@ -82,7 +82,7 @@ Server-side function to securely verify the address of the logged in client-side
8282
by validating the provided client-side login request.
8383

8484
```python
85-
domain = "thirdweb.com"
85+
domain = "example.com"
8686
payload = sdk.auth.login(domain)
8787

8888
# Verify the login request
@@ -115,7 +115,7 @@ Server-side function that generates a JWT token from the provided login request
115115
client-side wallet can use to authenticate to the server-side application.
116116

117117
```python
118-
domain = "thirdweb.com"
118+
domain = "example.com"
119119
payload = sdk.auth.login(domain)
120120

121121
# Generate an authentication token for the logged in wallet
@@ -145,7 +145,7 @@ Server-side function that authenticates the provided JWT token. This function ve
145145
the provided authentication token is valid and returns the address of the authenticated wallet.
146146

147147
```python
148-
domain = "thirdweb.com"
148+
domain = "example.com"
149149
payload = sdk.auth.login(domain)
150150
token = sdk.auth.generate_auth_token(domain, payload)
151151

thirdweb/core/auth/wallet_authenticator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WalletAuthenticator(ProviderHandler):
3232
3333
```python
3434
# We specify the domain of the application to authenticate to
35-
domain = "thirdweb.com"
35+
domain = "example.com"
3636
3737
# We can then generate a payload for the connected wallet to login
3838
# This can also be done on the client side with the thirdweb TypeScript SDK
@@ -67,7 +67,7 @@ def login(
6767
6868
```python
6969
# Add the domain of the application that you want to log in to
70-
domain = "thirdweb.com"
70+
domain = "example.com"
7171
7272
# Generate a signed login payload for the connected wallet to authenticate with
7373
payload = sdk.auth.login(domain)
@@ -108,7 +108,7 @@ def verify(
108108
by validating the provided client-side login request.
109109
110110
```python
111-
domain = "thirdweb.com"
111+
domain = "example.com"
112112
payload = sdk.auth.login(domain)
113113
114114
# Verify the login request
@@ -163,7 +163,7 @@ def generate_auth_token(
163163
client-side wallet can use to authenticate to the server-side application.
164164
165165
```python
166-
domain = "thirdweb.com"
166+
domain = "example.com"
167167
payload = sdk.auth.login(domain)
168168
169169
# Generate an authentication token for the logged in wallet
@@ -222,7 +222,7 @@ def authenticate(
222222
the provided authentication token is valid and returns the address of the authenticated wallet.
223223
224224
```python
225-
domain = "thirdweb.com"
225+
domain = "example.com"
226226
payload = sdk.auth.login(domain)
227227
token = sdk.auth.generate_auth_token(domain, payload)
228228

0 commit comments

Comments
 (0)