Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(README): use correct arugment operator #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,21 @@ The SDK offers 3 basic functions that maps to the steps listed in [Wallet-based

```python
challenge = await dimo.auth.generate_challenge(
client_id: '<client_id>',
domain: '<domain>',
address: '<address>'
client_id='<client_id>',
domain='<domain>',
address='<address>'
)

signature = await dimo.auth.sign_challenge(
message: challenge['challenge'],
private_key: '<private_key>'
message=challenge['challenge'],
private_key='<private_key>'
)

tokens = await dimo.auth.submit_challenge(
client_id: '<client_id>',
domain: '<domain>',
state: challenge['state'],
signature: signature
client_id='<client_id>',
domain='<domain>',
state=challenge['state'],
signature=signature
)
```

Expand All @@ -94,9 +94,9 @@ As mentioned earlier, this is the streamlined function call to directly get the

```python
auth_header = await dimo.auth.get_token(
client_id: '<client_id>',
domain: '<domain>',
private_key: '<private_key>'
client_id='<client_id>',
domain='<domain>',
private_key='<private_key>'
)

# Store the access_token from the auth_header dictionary
Expand Down